Animas-0.2: Updated version of Yampa: a library for programming hybrid systems.

Portabilityportable
Stabilityprovisional
Maintainernilsson@cs.yale.edu

FRP.Animas.Miscellany

Description

Collection of entities that really should be part of the Haskell 98 prelude or simply have no better home.

!!! Reverse function composition should go. !!! Better to use <<< and >>> for, respectively, !!! function composition and reverse function composition.

Synopsis

Documentation

(#) :: (a -> b) -> (b -> c) -> a -> cSource

Reverse composition

dup :: a -> (a, a)Source

Duplicate a value into a pair

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

Swap the values in a pair

mapFst :: (a -> b) -> [(a, c)] -> [(b, c)]Source

Apply a function to the first value in each pair in a list of pairs.

mapSnd :: (a -> b) -> [(c, a)] -> [(c, b)]Source

Above, but apply the function to the second value

sel3_1 :: (a, b, c) -> aSource

First value of a triple

sel3_2 :: (a, b, c) -> bSource

Second value of a triple

sel3_3 :: (a, b, c) -> cSource

Third value of a triple

sel4_1 :: (a, b, c, d) -> aSource

First value of a quadruple

sel4_2 :: (a, b, c, d) -> bSource

Second value of a quadruple

sel4_3 :: (a, b, c, d) -> cSource

Third value of a quadruple

sel4_4 :: (a, b, c, d) -> dSource

Fourth value of a quadruple

sel5_1 :: (a, b, c, d, e) -> aSource

First value of a quintuple

sel5_2 :: (a, b, c, d, e) -> bSource

Second value of a quintuple

sel5_3 :: (a, b, c, d, e) -> cSource

Third value of a quintuple

sel5_4 :: (a, b, c, d, e) -> dSource

Fourth value of a quintuple

sel5_5 :: (a, b, c, d, e) -> eSource

Fifth value of a quintuple

fDivSource

Arguments

:: RealFrac a 
=> a

Dividend

-> a

Divisor

-> Integer

Integer quotient

Whole integer quotient

fModSource

Arguments

:: RealFrac a 
=> a

Dividend

-> a

Divisor

-> a

Remainder

Remainder after whole integer quotient

fDivModSource

Arguments

:: RealFrac a 
=> a

Dividend

-> a

Divisor

-> (Integer, a)

Integer quotient and remainder

Whole integer quotient and remainder