Non-decimal radices/Output: Difference between revisions
→{{header|Haskell}}: maximumBy -> maximum
(→{{header|Haskell}}: or, generalising and tabulating a little) |
(→{{header|Haskell}}: maximumBy -> maximum) |
||
Line 574:
<lang haskell>import Data.Monoid ((<>))
import Data.Ord (comparing)
import Data.List (unfoldr, transpose,
-- ARBITRARY RADICES ----------------------------------------------------------
Line 601:
transpose
((\col ->
let width =
justifyRight n c s = drop (length s) (replicate n c ++ s)
in justifyRight width ' ' <$> col) <$>
|