Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. bytecode:
  2. [start,1,2,3,4][map,[plus,3][gt,2]][is,[_]]
  3.  
  4. type inference
  5. [obj{0}, int{4}, [[int, int, bool]], bool{4}, [[bool, bool]], bool{0,4}]
  6.  
  7. obj{0} - [start] is initial
  8. int{4} - [start] emits 4 ints
  9. bool{4} - [map] processes an int at a time and produces a bool (4 times)
  10. bool{0,4} - [is] filters on true/false and thus, 0 to 4 bools will pass.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement