list/map
l fSummary
Runs f over every item in f" arg-i="1">list f" arg-i="1">l and returns the resuf" arg-i="1">lting f" arg-i="1">list
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($push/nil)) ( 1 ($det/val 'ret)) ( 3 ($drop)) ( 4 ($let)) ( 5 ($get/val 'l)) ( 7 ($det/val 'ΓεnΣym-5)) ( 9 ($drop)) ( 10 ($push/nil)) ( 11 ($jmp* 97)) ( 14 ($drop)) ( 15 ($push/val :pair)) ( 17 ($get/val 'type-of)) ( 19 ($get/val 'ΓεnΣym-5)) ( 21 ($apply 1)) ( 23 ($=)) ( 24 ($jf* 7)) ( 27 ($push/nil)) ( 28 ($jmp* 21)) ( 31 ($get/val 'throw)) ( 33 ($get/val 'list)) ( 35 ($push/val :type-error)) ( 37 ($push/val Improper list detected, please provide a proper list instead)) ( 39 ($get/val 'l)) ( 41 ($get/val 'current-lambda)) ( 43 ($apply 0)) ( 45 ($apply 4)) ( 47 ($apply 1)) ( 49 ($drop)) ( 50 ($get/val 'type-of)) ( 52 ($get/val 'ΓεnΣym-5)) ( 54 ($apply 1)) ( 56 ($push/val :pair)) ( 58 ($=)) ( 59 ($jf* 7)) ( 62 ($push/nil)) ( 63 ($jmp* 21)) ( 66 ($get/val 'throw)) ( 68 ($get/val 'list)) ( 70 ($push/val :type-error)) ( 72 ($push/val Expected a value of type :pair)) ( 74 ($get/val 'ΓεnΣym-5)) ( 76 ($get/val 'current-lambda)) ( 78 ($apply 0)) ( 80 ($apply 4)) ( 82 ($apply 1)) ( 84 ($drop)) ( 85 ($get/val 'ΓεnΣym-5)) ( 87 ($car)) ( 88 ($det/val 'e)) ( 90 ($drop)) ( 91 ($get/val 'f)) ( 93 ($get/val 'e)) ( 95 ($apply 1)) ( 97 ($get/val 'ret)) ( 99 ($cons)) ( 100 ($set/val 'ret)) ( 102 ($drop)) ( 103 ($get/val 'ΓεnΣym-5)) ( 105 ($cdr)) ( 106 ($set/val 'ΓεnΣym-5)) ( 108 ($get/val 'ΓεnΣym-5)) ( 110 ($jt* -96)) ( 113 ($drop)) ( 114 ($get/val 'nreverse)) ( 116 ($get/val 'ret)) ( 118 ($apply 1)) ( 120 ($closure/pop)) ( 121 ($ret))