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

Basics.Extra

Additional useful functions.

Tuples

swap : (a, b) -> (b, a)

Swaps the elements in a tuple.

swap (1, 2) == (2, 1)
module Basics.Extra (swap) where

{-| Additional useful functions.


# Tuples
@docs swap

-}


{-| Swaps the elements in a tuple.

    swap (1, 2) == (2, 1)

-}
swap : (a, b) -> (b, a)
swap (a, b) = (b, a)