William Tanksley, Jr wrote:
> Thank you, thank you. The recent post was... difficult for me :-).
> Google knows nothing.
>
> Eduardo Cavazos <[EMAIL PROTECTED]> wrote:
>
>> Basic cleave combinators:
>> Basic spread combinators:
>>
>
>
>> General cleave:
>> cleave ( obj { q1 q2 ... qN } -- q1(obj) q2(obj) ... qN(obj) )
>> General spread:
>> spread ( v1 v2 ... vN { q1 q2 ... qN } -- q1(v1) q2(v2) ... qN(vN) )
>>
>
> Very nice! Where did you get the names, though? I'm not criticizing,
> I'm just wondering.
>
> You know, a factor developer ought to get in touch with Stevan Apter
> of http://www.nsl.com/ and see whether there's any way to incorporate
> some basic array operations (ala APL/J/K) into Factor. I can do an
> intro, if simply mentioning his name doesn't invoke his presence.
Apter is aware of Factor and (used to?) lurk on the IRC channel. As for
array operations, there are some in the math.vectors vocab, for example
: v+ [ + ] 2map ;
: v* [ * ] 2map ;
: v. 0 [ * + ] 2reduce ;
{ 1 2 3 } { 4 5 6 } v+ . => { 5 7 9 }
Slava
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk