Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #20156

Filtering

From "WJ" <w_a_x_man@yahoo.com>
Newsgroups comp.lang.forth
Subject Filtering
Date 2013-03-02 07:48 +0000
Organization NewsGuy - Unlimited Usenet $19.95
Message-ID <kgsasr0ibq@enews6.newsguy.com> (permalink)

Show all headers | View raw


Given a sequence of numbers, keep those that are odd and
multiply them by 100.

Factor:


USE: sequences.extras

{ 1 1 2 3 5 8 13 21 } [ odd? ] [ 100 * ] filter-map
{ 100 100 300 500 1300 2100 }

Back to comp.lang.forth | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Filtering "WJ" <w_a_x_man@yahoo.com> - 2013-03-02 07:48 +0000
  Re: Filtering mhx@iae.nl (Marcel Hendrix) - 2013-03-02 11:17 +0200
  Re: Filtering "Charles Childers" <crc@retroforth.org> - 2013-03-02 11:18 -0500
    Re: Filtering "A. K." <akk@nospam.org> - 2013-03-02 17:55 +0100
      Re: Filtering Marc Olschok <nobody@nowhere.invalid> - 2013-03-03 22:11 +0000

csiph-web