In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Luke Palmer) wrote:
> sub wn($n) { $n ?? wn($n-1)+1 :: $w }
> $w2 = 0... + wn�0...;
> assert($w2 == $w*2);
>Just think of the possibilities! :-)
Hm. Needs more Unicode. =)
>Seriously though, putting 1st, 2nd, nth, etc. in the language is somehow
>very appealing. It makes my heartburn about m:1st// settle down quite a
>bit, too.
It is kind of comfortable. Which is why I think I'd like to keep the
redundant nth (if we have "first" and "last"), aka 'th (where nth($i)
and $i'th are just pre- and postfixed versions of each other).
When you're referring to an element in the middle of a list,
$four'th
just feels cleaner than "first+$four" or something.