You can use mapIt instead of map (which takes a procedure or an anonymous procedure)
So it would look like this:
import sequtils
let xx = @[42.3, 48.5, 43.4]
var x = xx.mapIt(int(it))
Run
You can use mapIt instead of map (which takes a procedure or an anonymous procedure)
So it would look like this:
import sequtils
let xx = @[42.3, 48.5, 43.4]
var x = xx.mapIt(int(it))
Run