array/map
arr funSummary
Map an array, (map) should be preferred
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($get/val 'array/length)) ( 2 ($get/val 'arr)) ( 4 ($apply 1)) ( 6 ($det/val 'len)) ( 8 ($drop)) ( 9 ($let)) ( 10 ($push/int/byte 0)) ( 12 ($det/val 'i)) ( 14 ($drop)) ( 15 ($push/nil)) ( 16 ($jmp* 30)) ( 19 ($drop)) ( 20 ($get/val 'array/set!)) ( 22 ($get/val 'arr)) ( 24 ($get/val 'i)) ( 26 ($get/val 'fun)) ( 28 ($get/val 'array/ref)) ( 30 ($get/val 'arr)) ( 32 ($get/val 'i)) ( 34 ($apply 2)) ( 36 ($apply 1)) ( 38 ($apply 3)) ( 40 ($drop)) ( 41 ($get/val 'i)) ( 43 ($inc/int)) ( 44 ($set/val 'i)) ( 46 ($get/val 'i)) ( 48 ($get/val 'len)) ( 50 ($<)) ( 51 ($jt* -32)) ( 54 ($drop)) ( 55 ($get/val 'arr)) ( 57 ($closure/pop)) ( 58 ($ret))