Elm Exactly
Results / elm-core /

TuplePairFuncTest

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
`Tuple.pair` builds a pair from two `Int` arguments and from two `String` arguments.

Results

elm-0.19.1

passran in 43 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
pair1: (1,2)
pair2: ("a","b")

elm-0.19.2

passran in 43 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
pair1: (1,2)
pair2: ("a","b")

elm-0.19.3

passran in 60 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets.
pair1: (1,2)
pair2: ("a","b")

lamdera-1.5.0

passran in 57 ms
Output
pair1: (1,2)
pair2: ("a","b")

Discussions

Discuss this test·Search the discussions on GitHub

Discussions are on GitHub; one about this test has [t:elm-core/TuplePairFuncTest] in its title.

Source

The -- CHECK: lines give the expected output.

module TuplePairFuncTest exposing (main)
{-| `Tuple.pair` builds a pair from two `Int` arguments and from two `String` arguments.
-}
-- CHECK: pair1: (1,2)
-- CHECK: pair2: ("a","b")
import Html exposing (text)
main =
let
_ = Debug.log "pair1" (Tuple.pair 1 2)
_ = Debug.log "pair2" (Tuple.pair "a" "b")
in
text "done"