Re: Wishlist

new topic     » goto parent     » topic index » view thread      » older message » newer message

kbochert wrote:

> 6-- slicing shorthands:
> seq[2..]     =>  seq[2..length(seq)]
> seq[i..-3]   =>  seq[i..length(seq-3)]
> seq = [2..]  =>  seq = seq[2..length(seq)]
> seq += "a"   =>  seq = append (seq, "a")

What would you do in the case:

  seq += 'a'

...since this currently adds 'a' (97) to all elements of seq, and would
break exisiting code if it was changed...

Carl - Being picky. Sorry. sad

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu