Anonymous user
Lucky and even lucky numbers: Difference between revisions
→{{header|Haskell}}
m (→{{header|Haskell}}: simplified argument parsing) |
|||
Line 92:
Haskell is a very nice language for this problem because it is a lazy language. Here regular expressions and data types are used.
<lang Haskell>
import System.Environment
import Text.Regex.Posix
Line 133 ⟶ 131:
nth :: Int -> Lucky -> Int
nth j
nth j
range :: Int -> Int -> Lucky -> [Int]
|