concept table figure in category elm

appears as: table figure
Elm in Action

This is an excerpt from Manning's book Elm in Action.

Table 1.9. Differences between plain functions and operators (view table figure)

Function

How to identify one

Calling style

Examples

Plain Name begins with a letter Prefix style negate, not, pluralize
Operator Name has no letters or numbers Infix style (++), (*), (==)
Table 3.4. Comparing type variables for List and Html (view table figure)

Value

Type

Description

[ "foo" ] List String List of String elements
[ 3.14 ] List Float List of Float elements
div [ onClick "foo" ] [] Html String Html producing String messages
div [ onClick 3.14 ] [] Html Float Html producing Float messages
div [ onClick { x = 3.3 } ] [] Html { x : Float } Html producing { x : Float } messages
Table 3.6. Types involved in calling Random.generate (view table figure)

Expression

Type

Type in original annotation

GotSelectedIndex (Int -> Msg) (randomValue -> msg)
randomPhotoPicker Random.Generator Int Random.Generator randomValue
Random.generate
GotSelectedIndex
randomPhotoPicker
Cmd Msg Cmd msg