Hi Stephan,

Another way of writing [ 2array ] 2map is 2array flip. You might find it 
reads better. Also, we don't use camelCase naming conventions for words, 
instead we'd call your word slice-indices.

Have fun,

Slava

Stephan Rudlof wrote:
> Hello Slava,
>
> thank you very much for your valuable hint!
>
> Now my expression is
> ==
> : sliceIndices ( seqLen sliceLen -- indices )
>     2dup swap [a,b] >r - [0,b] r> [ 2array ] 2map ;
> ==
> ; and it works like a charm!
>
> Stephan


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

Reply via email to