At 07:32 PM 3/12/01 +0900, jonas wrote: >Robert Feldt wrote: > > > > On Sat, 10 Mar 2001, Yukihiro Matsumoto wrote: > > > | [1,2,3,4].zip([10,20,30]) # => > [[1,10],[2,20],[3,30]] > > > | [1,2,3].tail # => [2,3] > > > | [1,2,3,4].init # => [1,2,3] > > > > > > Behavior of these functions are not really apparent. I think we need > > > to discuss more about these. > > > > > They have been used in the functional programming community for years with > > these names (which doesnt mean we have to adopt them...). I'd say tail > > is a good name and a very useful method. 'init' is probably too close to > > 'initialize' so not good name. IMHO, 'zip' is a pretty good name (think > > about a zipper in your pants or jacket...) but I'm not sure the > > functionality is useful enough to promote it into the base lib. > >How about 'head' instead of 'init'? I think the name is already in use in functional programming with a different meaning: [1,2,3,4].head # => either 1 or [1], I don't remember Bye, Luigi