Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created June 26, 2014 15:47
Show Gist options
  • Save jackdempsey/e625f3a839cae2cc19e6 to your computer and use it in GitHub Desktop.
Save jackdempsey/e625f3a839cae2cc19e6 to your computer and use it in GitHub Desktop.
> factorial n = \
| if n < 1 then 1 \
| else n * factorial (n-1)
[1 of 1] Compiling Repl ( repl-temp-000.elm )
Parse error at (line 6, column 1):
unexpected "i"
expecting newline or spaces
> factorial n = \
| if n < 1 then 1 \
| else n * factorial (n-1)
<function> : number -> number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment