array/fill!

a v


Summary

Fills array a with value v

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 'array/length))
(    2 ($get/val 'a))
(    4 ($apply 1))
(    6 ($det/val 'len))
(    8 ($drop))
(    9 ($let))
(   10 ($push/int/byte 0))
(   12 ($det/val 'i))
(   14 ($drop))
(   15 ($push/nil))
(   16 ($jmp* 20))
(   19 ($drop))
(   20 ($get/val 'array/set!))
(   22 ($get/val 'a))
(   24 ($get/val 'i))
(   26 ($get/val 'v))
(   28 ($apply 3))
(   30 ($drop))
(   31 ($get/val 'i))
(   33 ($inc/int))
(   34 ($set/val 'i))
(   36 ($get/val 'i))
(   38 ($get/val 'len))
(   40 ($<))
(   41 ($jt* -22))
(   44 ($drop))
(   45 ($get/val 'a))
(   47 ($closure/pop))
(   48 ($ret))