F# - This code isn't compiling for me
- by stacker
This code isn't compiling for me: let countDown = [5L .. -1L .. 0L];;
I have a book that says it should return this:
val countDown : int list = [5L; 4L; 3L; 2L; 1L; 0L]
Compiler Error:
Program.fs(42,24): error FS0010: Unexpected character '-' in expression
>
> let countDown = [5L .. -1L .. 0L];;
let countDown = [5L .. -1L .. 0L];;
-----------------------^