in reply to Re: Re: Self-improvement and TMTOWTDI
in thread Self-improvement and TMTOWTDI

Somebody _had_ to call you on this. :-)

I knew somebody was going to slap me!

How about Common LISP (gotta (love (those (brackets))).

At the very least we have: count, count-if, count-if-not, every, fill, find-if, find-if-not, map, map-into, merge, mismatch, notany, notevery, nsubstitute, nsubstitute-if, nsubstitute-if-not, position, position-if, position-if-not, reduce, remove, remove-duplicates, remove-if, remove-if-not, replace, search, some, substitute, substitute-if and substitute-if-not.

That's 30 - and I've probably missed some - different way of iterating over a sequence of elements.

(in case anybody hasn't realised - I am not being entirely serious here :-)

Replies are listed 'Best First'.
Re: Re: Re: Re: Self-improvement and TMTOWTDI
by demerphq (Chancellor) on Jan 25, 2003 at 00:47 UTC
    While I recognize your caveat, I cant help but think that these arent keywords. Surely most of these are compound constructs? Ie subroutines? (My lisp is minimal, but iirc lisp is a pretty minimal language itself.)

    --- demerphq
    my friends call me, usually because I'm late....

      They're all in the ANSI Common LISP standard. No libraries or extras needed.