TupleSecondTest
`Tuple.second` returns the second component of an `Int` pair and of a `String` pair.
Results
elm-0.19.1
passran in 42 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. second1: 2 second2: "world"
elm-0.19.2
passran in 72 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. second1: 2 second2: "world"
elm-0.19.3
passran in 63 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. second1: 2 second2: "world"
lamdera-1.5.0
passran in 47 msOutput
second1: 2 second2: "world"
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-core/TupleSecondTest] in its title.
Source
The -- CHECK: lines give the expected output.
module TupleSecondTest exposing (main)
{-| `Tuple.second` returns the second component of an `Int` pair and of a `String` pair.
-}
-- CHECK: second1: 2
-- CHECK: second2: "world"
import Html exposing (text)
main =
let
_ = Debug.log "second1" (Tuple.second (1, 2))
_ = Debug.log "second2" (Tuple.second ("hello", "world"))
in
text "done"