--- On Sun, 29/6/08, Patrick R. Michaud [EMAIL PROTECTED] wrote:
Do Cgrep and Creverse act like the
Cjoin method, in that
they work for CAny object and not just objects of
type CList?
In other words,, should C $x.grep(...) work even
if $x isn't normally a list type?
If I understand
--- On Mon, 30/6/08, Ovid [EMAIL PROTECTED] wrote:
--- On Sun, 29/6/08, Patrick R. Michaud
[EMAIL PROTECTED] wrote:
Do Cgrep and Creverse act like the
Cjoin method, in that
they work for CAny object and not just objects
of
type CList?
In other words,, should C $x.grep(...)
Ovid wrote:
--- On Sun, 29/6/08, Patrick R. Michaud [EMAIL PROTECTED] wrote:
Do Cgrep and Creverse act like the
Cjoin method, in that
they work for CAny object and not just objects of
type CList?
In other words,, should C $x.grep(...) work even
if $x isn't normally a list type?
If
In a message dated Mon, 30 Jun 2008, Ovid writes:
I just noticed you included 'reverse' in that list of methods. I
thought junctions were inherently unordered, thus making reverse
kind of useless (which leads me even more to believe that I've
misunderstood the question).
Yes--Junction is a
On Mon, Jun 30, 2008 at 01:43:11PM +0200, Moritz Lenz wrote:
Ovid wrote:
--- On Sun, 29/6/08, Patrick R. Michaud [EMAIL PROTECTED] wrote:
Do Cgrep and Creverse act like the
Cjoin method, in that
they work for CAny object and not just objects of
type CList?
In other words,,
On Mon, Jun 30, 2008 at 07:25:11AM -0500, Patrick R. Michaud wrote:
Moritz is correct -- in order to get ('foo').join(':') to work as
people will expect, it was decided to define universal methods
in the Any class as part of the prelude [1].
I forgot to include the reference link:
1.
On Mon, Jun 30, 2008 at 07:25:11AM -0500, Patrick R. Michaud wrote:
: So my question is really whether or not we consider grep and
: reverse to be universal methods in this sense also, so that
: C $x.grep(...) and C $x.reverse will work even if $x
: isn't a value that normally does list-type