Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elm Revolution

Elm Revolution

Ulric Wilfred

September 06, 2017
Tweet

More Decks by Ulric Wilfred

Other Decks in Programming

Transcript

  1. — Nikita Dudnik ALL THIS FRP HYPE MADE IT CLEAR

    HOW USEFUL IT IS TO BE ABLE
 TO CREATE YOUR UI=ƒ(state) ” “
  2. module exposing ( what ) definition definition … imports types

    COMPLETE MODULE: 
 MODULE WITH TYPES, IMPORTS AND DEFINITIONS
  3. “ text ” ‘ text ’ number item [ …

    ] VALUES OF BASIC TYPES , item ( … ) , number character string tuple list
  4. type ( … ) , List a BASIC TYPES IN

    DEFINITIONS record alias
  5. { : field , type : field , type …

    } RECORD AS A TYPE type alias
  6. subject : type subject = definition VARIABLE DEFINITION (WHICH IS

    A FUNCTION THAT IMMEDIATELY RETURNS A VALUE)
  7. subject : type subject = definition type … → argX

    … FUNCTION DEFINITION argX → return value
  8. subject : type subject = definition type → arg1 arg2

    FUNCTION DEFINITION arg1 arg2 type → return value
  9. type ( … ) , UNBOXING (A.K.A. DEREFERENCING) { field

    , … ) Maybe var MyType var1 var2 …
  10. record { | = field , value = field ,

    value … } CREATE NEW RECORD USING ANOTHER AS A SOURCE