Anonymous user
Old lady swallowed a fly: Difference between revisions
Frege and Haskell: concatMap is much more elegant
(Added BBC BASIC) |
(Frege and Haskell: concatMap is much more elegant) |
||
Line 736:
{{trans|Haskell}}
{{Works with|Frege|3.
Nearly identical to the Haskell. Only the first
<lang frege>module OldLady where
Line 778:
song :: [String]
song =
main
=={{header|Go}}==
Line 822:
=={{header|Haskell}}==
<lang haskell>#!/usr/bin/runhaskell▼
{{Works with|GHC|7.8.3}}
▲<lang haskell>#!/usr/bin/env runhaskell
import Data.List
Line 860 ⟶ 863:
song :: [String]
song =
main = putStr $ unlines song</lang>
|