Created
January 16, 2018 15:30
-
-
Save Chadtech/d0c49f4ded5e78a3a373422d34c0e37d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Intro | |
| - Elm isnt a frame work | |
| - Its ML syntax | |
| - Its compiled | |
| - Heres what a function is | |
| - Here is what currying is | |
| - Give a JS function one param, its broken, give an Elm function one param, its a totally new function | |
| - Heres what a union type is | |
| - Heres the architecture | |
| Mention | |
| - Redux | |
| - ReasonML | |
| Dont talk about | |
| - Refactoring | |
| - No Run time errors | |
| function myFunc (str) { | |
| return b; | |
| }; | |
| function curry2 (f) { | |
| return function(a) { | |
| return function(b) { | |
| return f(a,b); | |
| } | |
| } | |
| } | |
| function append (a, b) { | |
| return a + b | |
| } | |
| curry2(append)("a") | |
| // function(b) -> "a" + b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment