jhjh

jhhjh ; Any page can import any other page (import common)

; Print something to the screen (print "
Print: ") (print "this is my text")

; Print something to the screen (print "
Markdown syntax: ") (markdown "

Hi there

  1. This is markdown
  2. It makes formatting easier. ")

; Concatination (print "
Concatination: ") (concat "put " "some " "text " "together")

; Conditional (print "
Conditional: ") (if (= 1 1) (print "they equal"))

; Conditional with else (print "
Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

; Print something to a particular dom item (print "
Print: ") (print "1 2 3 5 6 7") (print "test" "4")

; Defining a function (print "
Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

; Function overriding (print "
Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

; Apply a function to every element in a list (print "
Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

; Reduce a List to a single output (print "
Reduce (with defined function): ") (reduce (list 100 10 3) -)

; Reduce a List to a single output (print "
Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

; Fold a List to a single output (print "
Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

; Fold a List to a create a bulleted list (print "
Fold: ") (fold (list "this" "is" "a" "list") "
My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh ; Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common)

    ; Print something to the screen (print "
    Print: ") (print "this is my text")

    ; Print something to the screen (print "
    Markdown syntax: ") (markdown "

    Hi there

    1. This is markdown
    2. It makes formatting easier. ")

    ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together")

    ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal"))

    ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal"))

    ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4")

    ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param")

    ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param")

    ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " "))))

    ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -)

    ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z)))

    ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z)))

    ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "

  • " z "
  • "))))

    ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50)

    ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last))))

    ; notice how everything is a function. name - the result ; of the printMyName function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name))))

    ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh

    jjhhhhjjhh

    jhjh

    jhhjh

    jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh ; Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2); Any page can import any other page (import common) ; Print something to the screen (print "
    Print: ") (print "this is my text") ; Print something to the screen (print "
    Markdown syntax: ") (markdown " ###Hi there 1. This is markdown 2. It makes formatting easier. ") ; Concatination (print "
    Concatination: ") (concat "put " "some " "text " "together") ; Conditional (print "
    Conditional: ") (if (= 1 1) (print "they equal")) ; Conditional with else (print "
    Conditional: ") ; try changing one of the '1's below and see the output change (if (= 1 1) (print "they equal") (print "they don't equal")) ; Print something to a particular dom item (print "
    Print: ") (print "1 2 3 5 6 7") (print "test" "4") ; Defining a function (print "
    Defining a function: ") (defun myfn (x) (concat "I just defined function and passed in: " x )) (myfn "some param") ; Function overriding (print "
    Function overriding: ") (defun somefn (x) (concat "fn1: " x )) (defun somefn (x) (concat "fn2: " x )) (somefn "some param") ; Apply a function to every element in a list (print "
    Foreach: ") (foreach (list 100 10 3) (lambda (x) (print (concat x " times 2 = " (* 2 x) " ")))) ; Reduce a List to a single output (print "
    Reduce (with defined function): ") (reduce (list 100 10 3) -) ; Reduce a List to a single output (print "
    Reduce (with lambda): ") (reduce (list 100 10 3) (lambda (y z) (- y z))) ; Fold a List to a single output (print "
    Fold (with lambda): ") (fold (list 10 3) 100 (lambda (y z) (- y z))) ; Fold a List to a create a bulleted list (print "
    Fold: ") (fold (list "this" "is" "a" "list") "
    My List:" (lambda (y z) (concat y (concat "
  • " z "
  • ")))) ; Currying (print "
    Currying: ") (defun mult (y) (lambda (x) (* y x))) ((mult 51) 50) ; Closure scoping (print "
    Closure scoping: ") (defun printMyName (first last) (list (lambda () (concat "First Name: " first)) (lambda () (concat "Last Name: " last)))) ; notice how everything is a function. `name` - the result ; of the `printMyName` function, is also a function. (defun name () (printMyName "Joe" "Black")) (concat ((nth 0 (name))) " - " ((nth 1 (name)))) ; Function as parameter (print "
    Function as parameter: ") (defun doStuff (someFn param1 param2) (someFn param1 param2)) (defun myCoolFn (x y) (concat "These params are cool: " x ", " y)) (doStuff myCoolFn 1 2)==jjhhjjhh jjhhhhjjhh jhjh jhhjh