sort
lSummary
Sorts the collection L
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($let)) ( 1 ($get/val 'type-of)) ( 3 ($get/val 'l)) ( 5 ($apply 1)) ( 7 ($det/val 'ΓεnΣym-6)) ( 9 ($drop)) ( 10 ($get/val 'ΓεnΣym-6)) ( 12 ($push/val :nil)) ( 14 ($=)) ( 15 ($jf* 7)) ( 18 ($push/nil)) ( 19 ($jmp* 55)) ( 22 ($get/val 'ΓεnΣym-6)) ( 24 ($push/val :pair)) ( 26 ($=)) ( 27 ($jf* 12)) ( 30 ($get/val 'list/sort)) ( 32 ($get/val 'l)) ( 34 ($apply 1)) ( 36 ($jmp* 38)) ( 39 ($get/val 'ΓεnΣym-6)) ( 41 ($push/val :array)) ( 43 ($=)) ( 44 ($jf* 12)) ( 47 ($get/val 'array/sort)) ( 49 ($get/val 'l)) ( 51 ($apply 1)) ( 53 ($jmp* 21)) ( 56 ($get/val 'throw)) ( 58 ($get/val 'list)) ( 60 ($push/val :type-error)) ( 62 ($push/val You can only use sort with a collection)) ( 64 ($get/val 'l)) ( 66 ($get/val 'current-lambda)) ( 68 ($apply 0)) ( 70 ($apply 4)) ( 72 ($apply 1)) ( 74 ($closure/pop)) ( 75 ($ret))