Skip to content

Instantly share code, notes, and snippets.

@fredcy
Created January 8, 2016 15:53
Show Gist options
  • Save fredcy/cb458d9fc7ff75915ff0 to your computer and use it in GitHub Desktop.
Save fredcy/cb458d9fc7ff75915ff0 to your computer and use it in GitHub Desktop.
import Graphics.Element exposing (..)
main2 =
let
me = you
you = "Jane"
in
show (me, you)
main3 =
let
isEven = \n -> n == 0 || isOdd (n - 1)
isOdd = \n -> n /= 0 && isEven (n - 1)
in
isOdd 12 |> show
test1 a b =
let
a = b
b = a
in
(a, b)
test2 =
let
a = b
b = "foo"
in
(a, b)
test3 a b =
let
a = b ++ "baz"
b = a ++ "larry"
in
(a, b)
main =
test3 "foo" "bar" |> show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment