MOO-cows Mailing List Archive
Re: A peeve.
On Sat, 21 Dec 1996, Brack wrote:
> there is a way to do it, it's just kind of silly/non-intuitive/whatever.
> try blah[2..2]=""
It's not actually silly. If you think of a string in light of how the list
operators work, it makes sense.
In the second example you are replacing one element with another. In a string
each character is an element, so it doesn't make sense.
Peace Through Superior Firepower Andrew Wendt
Which word doesn't belong: firstname.lastname@example.org
Christianity, Hypocrisy, Lies, Trickery, Sheep email@example.com
Subject Index |