fork(1) download
  1. import sequtils, algorithm
  2.  
  3. var my:seq[int] = @[1,2,3,4,5,5,5]
  4.  
  5. for i in 0..4: #same as quads just 1 more time
  6. if my[i] == my[i+1] and my[i+1] == my[i+2]:
  7. echo "lol"
Success #stdin #stdout 0s 6960KB
stdin
Standard input is empty
stdout
lol