Skip to content

Instantly share code, notes, and snippets.

@Chadtech
Created January 16, 2018 15:30
Show Gist options
  • Select an option

  • Save Chadtech/d0c49f4ded5e78a3a373422d34c0e37d to your computer and use it in GitHub Desktop.

Select an option

Save Chadtech/d0c49f4ded5e78a3a373422d34c0e37d to your computer and use it in GitHub Desktop.
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