Re: Standard library praise and challenge

new topic     » goto parent     » topic index » view thread      » older message » newer message
SDPringle said...

I have wondered for some time. Why do max and min recurse?

Like max({"Head","Tail"}) will give you 'l' but it seems to me you would want the object with the highest value ("Tail") more often then the highest letter ('l').



I'd say max({"Head","Tail"}) should give you a word, max("HeadTail") should give you a letter.

Likewise, max( { {"2,Tail"} , {"1,Head" } } ) should return a sequence.

SDPringle said...

There must have been a reason for this.

Shawn



I wouldn't bet on that.

useless

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

Search



Quick Links

User menu

Not signed in.

Misc Menu