Skip to content

Instantly share code, notes, and snippets.

@dom96
Created March 24, 2014 23:45
Show Gist options
  • Save dom96/a6cb03559189f8b104a8 to your computer and use it in GitHub Desktop.
Save dom96/a6cb03559189f8b104a8 to your computer and use it in GitHub Desktop.
import strutils
var x = @["5", "7"]
var y = x.map do (v: string) -> int:
v.parseInt
echo(y.repr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment