Should we have an identity function for the fun of it (Haskell has id and Smalltalk has yourself)?
how is that different from this_object() ?
It would be an this_function() or a magic variable this_function. No, I don't know what it should be used for.
Should we add Array.zip and Array.unzip to merge and split arrays.
how does that work?
array a = ({ 1,3,5,7 }); array b = ({ 2,4,6,8 }); Array.zip(a,b); ({1,2,3,4,5,6,7,8});
zip and unzip sound rather unintuitive in what they would do.
No, its a zipper. The name is from Haskell, merd, Python, Scheme and SML, which has the functionality.
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-09-03 19:26: Subject: Re: Language comparisions
On Wed, Sep 03, 2003 at 10:30:04AM -0400, Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum wrote:
I have spent the day adding a Pike column to some more language comparisions on the net, and thought it wise to save some info on where Pike failed:
great.
Should we have an identity function for the fun of it (Haskell has id and Smalltalk has yourself)?
how is that different from this_object() ?
Should we add Array.shift and Array.pop to remove elements in either end of the Array?
if that allows for a destructive change on the array, this would be nice.
Should we add Array.zip and Array.unzip to merge and split arrays.
how does that work? zip and unzip sound rather unintuitive in what they would do.
greetings, martin.
/ Brevbäraren