Quick actions

cmd+k|ctrl+k

Navigation

Languages

converter2

Snippet info

Language

Nim

Visibility

public

Author

chemist69

Created

2016-06-30T06:44:57Z

Updated

2016-06-30T06:44:57Z

converter floatToInt(x: float): int =
 x.toInt

iterator countupn(a, b: int): int =
  var res = a
  while res <= b:
    yield res
    inc(res)

var x = 4.3

for _ in countupn(1, x):
  echo("Test")
INFO