I can't understand how Haskell is comparing between two Strings (of different length).
For example,
"abc" <= "ab"
is returning False
But
"abc" <= "ac"
is returning True
Isn't Haskell compare character by character for each Strings?
For the first example, I thought "a"<="a", "b"<="b", "c"<=""
For the second example, "a"<="a", "b"<="c", "c"<=""
Aucun commentaire:
Enregistrer un commentaire