list/cut

l start end


Summary

Return a subsequence of L from START to END

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 'list-take))
(    2 ($get/val 'list-drop))
(    4 ($get/val 'l))
(    6 ($get/val 'max))
(    8 ($push/int/byte 0))
(   10 ($get/val 'start))
(   12 ($apply 2))
(   14 ($apply 2))
(   16 ($get/val 'end))
(   18 ($get/val 'max))
(   20 ($push/int/byte 0))
(   22 ($get/val 'start))
(   24 ($apply 2))
(   26 ($sub))
(   27 ($apply 2))
(   29 ($ret))