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