Write a function rangeN
, that, given a natural number n
, creates the range of natural numbers from 1
to n
, e.g.:
rangeN 5 -- [1, 2, 3, 4, 5]
It is not required to have your own version of Elm. Installing npm deps is enough:
npm i
- Run test suite
npm run test
- Watch test suite
npm run test:watch
- Run any Elm command
npx elm <command> # npx elm install abc/def # npx elm repl