#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
#<OpenStruct x=4, y=2> > point.x => 4 > point.x = 1 => 1 > point.z = 3 => 3 > point = { x = 4, y = 2 } { x = 4, y = 2 } : { x : number, y : number1 } > point.x 4 : number > { point | x = 1 } { x = 1, y = 2 } : { y : number1, x : number } > { point | z = 1 } -- TYPE MISMATCH
error | Ok value String.toInt : String -> Result String Int String.toInt "123" == Ok 123 String.toInt "-42" == Ok -42 String.toInt "3.1" == Err "could not convert string '3.1' to an Int" String.toInt "31a" == Err "could not convert string '31a' to an Int”
error | Ok value String.toInt : String -> Result String Int String.toInt "123" == Ok 123 String.toInt "-42" == Ok -42 String.toInt "3.1" == Err "could not convert string '3.1' to an Int" String.toInt "31a" == Err "could not convert string '31a' to an Int”
error | Ok value String.toInt : String -> Result String Int String.toInt "123" == Ok 123 String.toInt "-42" == Ok -42 String.toInt "3.1" == Err "could not convert string '3.1' to an Int" String.toInt "31a" == Err "could not convert string '31a' to an Int”
error | Ok value String.toInt : String -> Result String Int String.toInt "123" == Ok 123 String.toInt "3.1" == Err "could not convert string '3.1' to an Int" String.toInt "31a" == Err "could not convert string '31a' to an Int”
update : Msg -> Model -> Model update msg model = case msg of Increment productId -> updateProductCount productId model 1 Decrement productId updateProductCount productId model -1
Model, Cmd Msg ) update msg model = case msg of GoToCheckout -> ( { model | status = ViewingCheckoutForm }, Cmd.none ) CancelCheckout -> ( { model | status = ViewingCart }, Cmd.none )
Model, Cmd Msg ) update msg model = case msg of GoToCheckout -> ( { model | status = ViewingCheckoutForm }, Cmd.none ) CancelCheckout -> ( { model | status = ViewingCart }, Cmd.none )