What does “! []” Elm code syntax in Todomvc mean

Update for Elm 0.19 Elm 0.19 has removed the exclamation point operator. You must now construct the tuple manually, as in (model, Cmd.none). Original Answer for Elm 0.18 The exclamation point in model ! [] is just a short-hand function for (model, Cmd.batch []), which is the type returned from typical update statements. It is … Read more

What does the `

<< is a function composition operator, defined in core library Basics. All functions from Basics are imported into Elm projects unqualified. Elm’s type system Let’s recall basics of Elm type system. Elm is statically typed. This means that in Elm every variable or function has a type, and this type never changes. Examples of types … Read more

Difference in Elm between type and type alias?

How I think of it: type is used for defining new union types: type Thing = Something | SomethingElse Before this definition Something and SomethingElse didn’t mean anything. Now they are both of type Thing, which we just defined. type alias is used for giving a name to some other type that already exists: type … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)