Logo GenPRES

Outcome Module

Maps and returns the value of an evaluated or refused outcome of an evaluation.

Functions and values

Function or value Description

get _arg1

Full Usage: get _arg1

Parameters:
Returns: 'a
Type parameters: 'a

Returns the value of an evaluated or a refused outcome.

_arg1 : Outcome<'a>
Returns: 'a

map f _arg1

Full Usage: map f _arg1

Parameters:
Returns: Outcome<'b>
Type parameters: 'a, 'b

Maps the value of an evaluated or a refused outcome; a refused outcome keeps its refusal.

f : 'a -> 'b
_arg1 : Outcome<'a>
Returns: Outcome<'b>

mapEvaluated f _arg1

Full Usage: mapEvaluated f _arg1

Parameters:
Returns: Outcome<'a>
Type parameters: 'a

Maps the value of an evaluated outcome; a refused outcome is not changed.

f : 'a -> 'a
_arg1 : Outcome<'a>
Returns: Outcome<'a>

Type something to start searching.