I'm not sure about filter-index - I don't see any documentation about that
word. But here's a version of map-index that fulfils your request:

USING: kernel sequences fry ;
: map-index' ( ... seq quot: ( ... elt index -- ... newelt ) -- ... newseq )
    '[ [ nip @ ] map-index ] call ; inline

Loryn Jenkins


On Mon, Apr 15, 2013 at 11:12 AM, mr w <wzr...@gmail.com> wrote:

> Is there a version of filter-index that only puts the index on the
> stack, without the corresponding element?
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to