Advertisement
keatondunsford

Nock subtract subject question

Feb 2nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. .*([666 66]
  2. [8 :: Compose with current subject:
  3. [1 0] :: constant 0 (for inner loop).
  4. [8 :: with product of `compose again with current subject`:
  5. [1 0] :: a second constant 0. (for outer loop)
  6. [8 :: with product of another compose ...
  7. [1 :: noun of
  8. [6 :: outer conditional
  9. [5 [8 :: if the product of this compose --
  10. [1 :: noun of
  11. [6 :: inner conditional
  12. [5 [1 1] [1 1]] :: if 1 and 1 are equal (which they are; whole thing just a subject test)
  13. [0 31] :: produce the noun and tree address 31 (66 in this case, atom `b`)
  14. [4 0 31] :: *this won't trigger*
  15. ]
  16. ]
  17. [9 2 [0 1]] :: ^ composed with calling battery of subject
  18. ]
  19. [0 31] :: ^^ if that whole thing (which produces [0 31]) is equal to [0 31] (which obviously should)
  20. ]
  21. [1 100] :: then produce the constant 100 (this is what this whole thing should produce?)
  22. [0 1] :: if not produce the whole subject noun
  23. ]
  24. ]
  25. [9 2 [0 1]] :: call battery on the whole subject
  26. ]
  27. ]
  28. ])
  29.  
  30.  
  31.  
  32. :: yet, this whole thing doesn't return 100 (which means that the inner loop is changing up all the addresses since it's being composed with the whole subject, therefore 'moving' (the immutable equivalent) where the noun at the original [0 31] is.
  33.  
  34. > .*([666 66] [8 [1 0] [8 [1 0] [8 [1 [6 [5 [8 [1 [6 [5 [1 1] [1 1]] [0 31] [4 0 31]]] [9 2 [0 1]]] [0 31]] [1 100] [0 1]]] [9 2 [0 1]]]]])
  35. [[6 [5 [8 [1 6 [5 [1 1] 1 1] [0 31] 4 0 31] 9 2 0 1] 0 31] [1 100] 0 1] 0 0 666 66] <--- product
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement