Gizra / elm-compat-019 / Basics018

Elm 0.19 made sevral changes:

The toString function was moved to the Debug module. It is not possible to re-implement it here.

rem : Basics.Int -> Basics.Int -> Basics.Int

Find the remainder after dividing one number by another.

rem 11 4 --> 3

rem 12 4 --> 0

rem 13 4 --> 1

rem -1 4 --> -1

flip : (a -> b -> c) -> b -> a -> c

Flip the order of the first two arguments to a function.

curry : (( a, b ) -> c) -> a -> b -> c

Change how arguments are passed to a function. This splits paired arguments into two separate arguments.

uncurry : (a -> b -> c) -> ( a, b ) -> c

Change how arguments are passed to a function. This combines two arguments into a single pair.