sequences: simplify (map-find).
parent
f4ccfa0f71
commit
b51617db16
|
@ -1011,8 +1011,7 @@ PRIVATE>
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: (map-find) ( seq quot find-quot -- result elt )
|
: (map-find) ( seq quot find-quot -- result elt )
|
||||||
[ [ f ] 2dip [ [ nip ] dip call dup ] curry ] dip call
|
[ [ f ] 2dip [ nip ] prepose [ dup ] compose ] dip call nip ; inline
|
||||||
[ [ drop f ] unless ] dip ; inline
|
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue