forked from urbit/archaeology
-
Notifications
You must be signed in to change notification settings - Fork 0
Hoon sort
Adam Bliss edited this page Oct 25, 2013
·
1 revision
++ sort :: quicksort
~/ %sort
|* [a=(list) b=_|=([p=* q=*] =(p q))]
=> .(a (homo a))
|- ^+ a
?~ a ~
%+ weld
$(a (skim t.a |=(c=_i.a (b c i.a))))
[i.a $(a (skim t.a |=(c=_i.a !(b c i.a))))]
Parts of this document are generated automatically. Edits within the comments section will be preserved.