mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 18:43:46 +03:00
rewrite +soft to use +mule
This commit is contained in:
parent
ba0de921ab
commit
1f3456fc4d
@ -266,11 +266,6 @@
|
||||
::
|
||||
++ head |*(^ ,:+<-) :: get head
|
||||
++ same |*(* +<) :: identity
|
||||
++ soft :: maybe remold
|
||||
|* han/$-(* *)
|
||||
|= fud/* ^- (unit han)
|
||||
=+ gol=(han fud)
|
||||
?.(=(gol fud) ~ [~ gol])
|
||||
::
|
||||
++ tail |*(^ ,:+<+) :: get tail
|
||||
++ test |=(^ =(+<- +<+)) :: equality
|
||||
@ -5989,6 +5984,15 @@
|
||||
$2 [%| p.ton]
|
||||
==
|
||||
::
|
||||
++ soft :: maybe remold
|
||||
|* han/$-(* *)
|
||||
|= fud/* ^- (unit han)
|
||||
=+ result=(mule |.((han fud)))
|
||||
?- -.result
|
||||
%| ~
|
||||
%& [~ p.result]
|
||||
==
|
||||
::
|
||||
:::: 4o: molds and mold builders
|
||||
::
|
||||
+$ abel typo :: original sin: type
|
||||
|
Loading…
Reference in New Issue
Block a user