Logo GenPRES

Calculator Module

Checks with given comparison functions whether a minimum lies above a maximum, and formats a minimum and a maximum in symbols or in Dutch.

Functions and values

Function or value Description

minGTmax gt gte isMinIncl isMaxIncl max min

Full Usage: minGTmax gt gte isMinIncl isMaxIncl max min

Parameters:
    gt : 'a -> 'b -> 'c
    gte : 'a -> 'b -> 'c
    isMinIncl : 'a -> bool
    isMaxIncl : 'b -> bool
    max : 'b
    min : 'a

Returns: 'c
Type parameters: 'a, 'b, 'c
gt : 'a -> 'b -> 'c
gte : 'a -> 'b -> 'c
isMinIncl : 'a -> bool
isMaxIncl : 'b -> bool
max : 'b
min : 'a
Returns: 'c

toString brToStr min max

Full Usage: toString brToStr min max

Parameters:
    brToStr : 'a -> string
    min : (bool * 'a) option
    max : (bool * 'a) option

Returns: string
Type parameters: 'a
brToStr : 'a -> string
min : (bool * 'a) option
max : (bool * 'a) option
Returns: string

toStringNL brToStr min max

Full Usage: toStringNL brToStr min max

Parameters:
    brToStr : 'a -> string
    min : (bool * 'a) option
    max : (bool * 'a) option

Returns: string
Type parameters: 'a
brToStr : 'a -> string
min : (bool * 'a) option
max : (bool * 'a) option
Returns: string

toString_ st ste gt gte dotsM brToStr min max

Full Usage: toString_ st ste gt gte dotsM brToStr min max

Parameters:
    st : 'a
    ste : 'a
    gt : 'b
    gte : 'b
    dotsM : 'c
    brToStr : 'd -> string
    min : (bool * 'd) option
    max : (bool * 'd) option

Returns: string
Type parameters: 'a, 'b, 'c, 'd
st : 'a
ste : 'a
gt : 'b
gte : 'b
dotsM : 'c
brToStr : 'd -> string
min : (bool * 'd) option
max : (bool * 'd) option
Returns: string

validate minGTmax min max

Full Usage: validate minGTmax min max

Parameters:
    minGTmax : 'a -> 'a -> bool
    min : 'a option
    max : 'a option

Returns: Result<('a option * 'a option), Msg<'a, 'b>>
Type parameters: 'a, 'b
minGTmax : 'a -> 'a -> bool
min : 'a option
max : 'a option
Returns: Result<('a option * 'a option), Msg<'a, 'b>>

Type something to start searching.