Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. :: takes an atom, returns a tape representation of its value
  2. ++ at-tape
  3. |= a=@ ^- tape
  4. =| tick=(list @t)
  5. =/ n=@ 10
  6. |-
  7. =/ digit=@ (mod a n)
  8. ?: (gte a n)
  9. $(tick (weld (trip `@t`(add digit 48)) tick), a (div a n))
  10. (weld (trip `@t`(add digit 48)) tick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement