A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/024996.html below:

[Python-Dev] Python 2.3 release schedule

[Python-Dev] Python 2.3 release scheduleMartin Sjögren martin@strakt.com
Tue, 4 Jun 2002 17:08:37 +0200
On Sun, May 26, 2002 at 01:19:15AM -0400, Raymond Hettinger wrote:
>    ia.filter(pred)          # takewhile
>    ia.invfilter(pred)       # dropwhile

Err. I don't know what you mean with "filter", but in Haskell, there is a
big difference between filter and takeWhile.

Prelude> filter (>3) [1..5]
[4,5]
Prelude> takeWhile (>3) [1..5]
[]
Prelude> dropWhile (>3) [1..5]
[1,2,3,4,5]


/Martin

-- 
Martin Sjögren
  martin@strakt.com              ICQ : 41245059
  Phone: +46 (0)31 7710870       Cell: +46 (0)739 169191
  GPG key: http://www.strakt.com/~martin/gpg.html




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4