Sort a list of object identifiers: Difference between revisions

→‎Haskell – Data.Text: Reduced an expression, slightly
(→‎{{header|Haskell}}: Added subsections - simplified one expression (few brackets, and a functor law reduction))
(→‎Haskell – Data.Text: Reduced an expression, slightly)
Line 376:
oidSort :: [String] -> [String]
oidSort =
fmap (intercalate "." <$>. fmap show) . sort . fmap (fmap readInt . splitOn ".")
fmap (show <$>) . sort . fmap (fmap readInt . splitOn ".")
 
readInt :: String -> Int
9,659

edits