fn/check

args body


Warning

This function is declared internal, so there are no guarantees whatsoever regarding its existence or functionality.

Have fun playing around with the internals but please try not to use any of these in any library or application.

No documentation available

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 'args))
(    2 ($jf* 7))
(    5 ($push/nil))
(    6 ($jmp* 21))
(    9 ($get/val 'throw))
(   11 ($get/val 'list))
(   13 ($push/val :type-error))
(   15 ($push/val Every function needs an argument list))
(   17 ($get/val 'args))
(   19 ($get/val 'current-lambda))
(   21 ($apply 0))
(   23 ($apply 4))
(   25 ($apply 1))
(   27 ($drop))
(   28 ($push/nil))
(   29 ($jmp* 65))
(   32 ($drop))
(   33 ($push/val :symbol))
(   35 ($get/val 'type-of))
(   37 ($get/val 'args))
(   39 ($apply 1))
(   41 ($=))
(   42 ($dup))
(   43 ($jt* 20))
(   46 ($drop))
(   47 ($push/val :pair))
(   49 ($get/val 'type-of))
(   51 ($get/val 'args))
(   53 ($apply 1))
(   55 ($=))
(   56 ($dup))
(   57 ($jt* 6))
(   60 ($drop))
(   61 ($push/val #f))
(   63 ($jf* 7))
(   66 ($push/nil))
(   67 ($jmp* 21))
(   70 ($get/val 'throw))
(   72 ($get/val 'list))
(   74 ($push/val :type-error))
(   76 ($push/val Wrong type for argument list))
(   78 ($get/val 'args))
(   80 ($get/val 'current-lambda))
(   82 ($apply 0))
(   84 ($apply 4))
(   86 ($apply 1))
(   88 ($drop))
(   89 ($get/val 'args))
(   91 ($cdr))
(   92 ($set/val 'args))
(   94 ($get/val 'args))
(   96 ($jt* -64))
(   99 ($drop))
(  100 ($get/val 'body))
(  102 ($jf* 7))
(  105 ($push/nil))
(  106 ($jmp* 21))
(  109 ($get/val 'throw))
(  111 ($get/val 'list))
(  113 ($push/val :type-error))
(  115 ($push/val Every function needs a body))
(  117 ($get/val 'body))
(  119 ($get/val 'current-lambda))
(  121 ($apply 0))
(  123 ($apply 4))
(  125 ($apply 1))
(  127 ($ret))