numeric-tools-0.1.0.1: Collection of numerical tools for integration, differentiation etc.

Portabilityportable
Stabilityexperimental
MaintainerAleksey Khudyakov <alexey.skladnoy@gmail.com>

Control.Monad.Numeric

Description

Function useful for writing numeric code which works with mutable data.

Synopsis

Documentation

forGenSource

Arguments

:: Monad m 
=> a

Staring index value

-> (a -> Bool)

Condition

-> (a -> a)

Function to modify index

-> (a -> m ())

Action to perform

-> m () 

For function which act much like for loop in the C

forSource

Arguments

:: Monad m 
=> Int

Starting index

-> Int

Maximal index value not reached

-> (Int -> m ())

Action to perfor,

-> m () 

Specialized for loop. Akin to:

 for( i = 0; i < 10; i++) { ...