mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 18:43:46 +03:00
Generalize ++hunt and move it to hoon.hoon.
This commit is contained in:
parent
5f3ee116eb
commit
91d4655b2f
@ -257,6 +257,13 @@
|
||||
|* b/*
|
||||
?.((a b) ~ [~ u=b])
|
||||
::
|
||||
++ hunt :: first of units
|
||||
|* {ord/$-({* *} ?) one/(unit) two/(unit)}
|
||||
^- (unit ?(_,.+.one _,.+.two))
|
||||
?~ one two
|
||||
?~ two one
|
||||
?:((ord ,.+.one ,.+.two) one two)
|
||||
::
|
||||
++ lift :: lift mold (fmap)
|
||||
|* a/mold :: flipped
|
||||
|* b/(unit) :: curried
|
||||
|
Loading…
Reference in New Issue
Block a user