forked from urbit/archaeology
-
Notifications
You must be signed in to change notification settings - Fork 0
Hoon turf
Adam Bliss edited this page Oct 25, 2013
·
1 revision
++ turf :: utf8 to utf32
|= a=@t
^- @c
%+ rap 5
|- ^- (list ,@c)
=+ b=(teff a)
?: =(0 b) ~
:- %+ can 0
%+ turn
^- (list ,[p=@ q=@])
?+ b !!
1 [[0 7] ~]
2 [[8 6] [0 5] ~]
3 [[16 6] [8 6] [0 4] ~]
4 [[24 6] [16 6] [8 6] [0 3] ~]
==
|=([p=@ q=@] [q (cut 0 [p q] a)])
$(a (rsh 3 b a))
Parts of this document are generated automatically. Edits within the comments section will be preserved.