Advertisement
sanlyt-modbyt

nester.hoon

Jul 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. ::
  2. This generator takes a noun and determines whether the noun is an atom or a cell. If the noun is an atom, this generator then determines whether the atom is an even atom or an odd atom.
  3. ::
  4.  
  5. |= a=*
  6. ?^ a
  7. "Cell"
  8. ?: =(0 (mod a 2))
  9. "Even Atom"
  10. "Odd Atom"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement