This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Basics017

Several functions from Elm 0.17 were moved to other modules in Elm 0.18, so here they are!

fst : ( a, b ) -> a

Given a 2-tuple, returns the first value.

snd : ( a, b ) -> b

Given a 2-tuple, returns the second value.

module Basics017 exposing (fst, snd)

{-| Several functions from Elm 0.17 were moved to other modules in Elm 0.18, so
here they are!

@docs fst, snd

-}

import Tuple


{-| Given a 2-tuple, returns the first value.
-}
fst : ( a, b ) -> a
fst =
    Tuple.first


{-| Given a 2-tuple, returns the second value.
-}
snd : ( a, b ) -> b
snd =
    Tuple.second