list-drop

l count


Summary

Drop the final COUNT elements from list L

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 'count))
(    2 ($push/int/byte 0))
(    4 ($<=))
(    5 ($jf* 8))
(    8 ($get/val 'l))
(   10 ($jmp* 15))
(   13 ($get/val 'list-drop))
(   15 ($get/val 'l))
(   17 ($cdr))
(   18 ($get/val 'count))
(   20 ($push/int/byte 1))
(   22 ($sub))
(   23 ($apply 2))
(   25 ($ret))