[stack] Looking for a combinator name
"Christopher Diggins" <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I am looking for a name for a combinator that is equivalent to:
In Cat: dip apply
Or in Joy: dip i
This turns out to be a very useful combinator when doing code
compression. Given two functions:
define f { a0 .. aN x b0 .. bN }
define g { a0 .. aN y b0 .. bN }
We can reduce the size by rewriting it as:
define h { [a0 .. aN] dip apply b0 .. bN }
define f { [x] h }
define g { [y] h }
Any suggestions would be appreciated.
- Christopher