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-typ
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. htt
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 C and C act like the
> >> C method, in that
> >> they work for C object and not just objects of
> >> type C?
> >>
> >> In other words,, sho
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 s
Ovid wrote:
> --- On Sun, 29/6/08, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
>
>> Do C and C act like the
>> C method, in that
>> they work for C object and not just objects of
>> type C?
>>
>> In other words,, should C< $x.grep(...) > work even
>> if $x isn't normally a list type?
>
> If
--- On Mon, 30/6/08, Ovid <[EMAIL PROTECTED]> wrote:
> --- On Sun, 29/6/08, Patrick R. Michaud
> <[EMAIL PROTECTED]> wrote:
>
> > Do C and C act like the
> > C method, in that
> > they work for C object and not just objects
> of
> > type C?
> >
> > In other words,, should C< $x.grep(...) > work
--- On Sun, 29/6/08, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
> Do C and C act like the
> C method, in that
> they work for C object and not just objects of
> type C?
>
> In other words,, should C< $x.grep(...) > work even
> if $x isn't normally a list type?
If I understand you correctly,