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

Portability portable provisional nilsson@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

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

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

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

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

Arguments

 :: RealFrac a => a Dividend -> a Divisor -> Integer Integer quotient

Whole integer quotient

Arguments

 :: RealFrac a => a Dividend -> a Divisor -> a Remainder

Remainder after whole integer quotient

Arguments

 :: RealFrac a => a Dividend -> a Divisor -> (Integer, a) Integer quotient and remainder

Whole integer quotient and remainder