list/sort/merge

l pred


Summary

Sorts a list

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 'pred))
(    2 ($jf* 7))
(    5 ($push/nil))
(    6 ($jmp* 7))
(    9 ($get/val '<))
(   11 ($set/val 'pred))
(   13 ($drop))
(   14 ($get/val 'nil?))
(   16 ($get/val 'l))
(   18 ($cdr))
(   19 ($apply 1))
(   21 ($jf* 8))
(   24 ($get/val 'l))
(   26 ($jmp* 36))
(   29 ($get/val 'list/split-half))
(   31 ($get/val 'l))
(   33 ($apply 1))
(   35 ($det/val 'parts))
(   37 ($drop))
(   38 ($get/val 'list/merge-sorted-lists))
(   40 ($get/val 'list/sort/merge))
(   42 ($get/val 'parts))
(   44 ($car))
(   45 ($get/val 'pred))
(   47 ($apply 2))
(   49 ($get/val 'list/sort/merge))
(   51 ($get/val 'parts))
(   53 ($cdr))
(   54 ($get/val 'pred))
(   56 ($apply 2))
(   58 ($get/val 'pred))
(   60 ($apply 3))
(   62 ($ret))