Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
lambda_expression_in_map.vv
6
lines
·
6
sloc
·
110 bytes
·
a685088fbd9906c89578c8d9e648be55208f3e4e
Raw
1
a := [4, 5]
2
dump(a.map(it))
3
dump(a.map(|| 5))
4
dump(a.map(|x| 5 * x))
5
dump(a.map(|x| x))
6
dump(a.map(|x, y| x))
7