rewrite +soft to use +mule

This commit is contained in:
Elliot Glaysher 2018-08-20 14:34:31 -07:00
parent ba0de921ab
commit 1f3456fc4d

View File

@ -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