View Single Post
Old 05-09-2014, 03:53 PM   #17
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If the comparison is "val < cmpN", the example:

first_matching_cmp(10,5,"small",10,"middle",15,"la rge","giant")

should return "large", not "middle", since 10 < 10 is not true.

(EDIT: what the...? Why does "large" appear as "la rge" in my post? I even typed the whole line, so no weird characters there)

Last edited by Jellby; 05-09-2014 at 03:55 PM.
Jellby is offline   Reply With Quote