Kernighans large earthquake problem: Difference between revisions
Content added Content deleted
(→{{header|Haskell}}: Added a first Haskell draft) |
|||
Line 304: | Line 304: | ||
(\x -> |
(\x -> |
||
[ x |
[ x |
||
| 6 < (read (last $ words x) :: Float) ]) $ |
| 6 < (read (last (C.unpack <$> C.words x)) :: Float) ]) $ |
||
C.lines cs</lang> |
|||
{{Out}} |
{{Out}} |
||
<pre>"8/27/1883 Krakatoa 8.8" |
<pre>"8/27/1883 Krakatoa 8.8" |