My work for Hoon 101. Will remain private until the class is over.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
563B

  1. :: Hoon School - Week 2
  2. :: ~bannum-magtus || s@p7.co.nz
  3. ::
  4. |= a=* :: take in any noun
  5. ^- tape :: explicitly return a tape
  6. %+ weld :: weld some strings to reduce repitition
  7. "input is " ::
  8. ?^ a :: first branch, test whether a is a cell
  9. "a cell" ::
  10. =- (weld - " atom") :: attach a block to the head of the subject
  11. ?: =((mod a 2) 0) :: mod is safe because we know a isnt a cell
  12. "an even" ::
  13. "an odd" ::