all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
import List
|
||||
import Char
|
||||
|
||||
mycmp s1 s2 = case compare (length s2) (length s1) of
|
||||
EQ -> compare (map toLower s1) (map toLower s2)
|
||||
x -> x
|
||||
|
||||
strings = ["Here", "are", "some", "sample", "strings", "to", "be", "sorted"]
|
||||
sorted = sortBy mycmp strings
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import Data.Monoid
|
||||
mycmp s1 s2 = mappend (compare (length s2) (length s1))
|
||||
(compare (map toLower s1) (map toLower s2))
|
||||
Loading…
Add table
Add a link
Reference in a new issue