4 Jun
2002
4 Jun
'02
11:08 a.m.
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