Guest User

jext

a guest
Dec 1st, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
J 0.25 KB | None | 0 0
  1. for_j. arg 0 do.
  2.   echo j
  3. end.
  4.  
  5. NB. compiles to
  6.  
  7. main =: monad define
  8.   argv =: y
  9.   arg =: monad define
  10.     ". > y { argv
  11.   )
  12.   for_j. arg 0 do.
  13.     echo j
  14.   end.
  15. )
  16. main '2 3 4' ; '3' NB. invoked from command line as `jext test.jxt "2 3 4" 3`
Add Comment
Please, Sign In to add comment