lang: funcs: core: iter: Add map iterator function part2
This adds the Unify method to our map function and also switches the arg order because I decided it would look nicer. Completely untested.
This commit is contained in:
@@ -6,7 +6,7 @@ $fn = func($x) { # ignore arg
|
||||
|
||||
$in = [5, 4, 3, 2, 1,]
|
||||
|
||||
$out = iter.xmap($fn, $in) # XXX: change to map
|
||||
$out = iter.xmap($in, $fn) # XXX: change to map
|
||||
|
||||
$t = template("out: {{ . }}", $out)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user