Header menu logo Sutil

OfFunc Module

Functions and values

Function or value Description

attempt task a error

Full Usage: attempt task a error

Parameters:
    task : 'args -> unit
    a : 'args
    error : exn -> 'msg'

Returns: (('msg' -> unit) -> unit) list
task : 'args -> unit
a : 'args
error : exn -> 'msg'
Returns: (('msg' -> unit) -> unit) list

either task a success error

Full Usage: either task a success error

Parameters:
    task : 'args -> 'a
    a : 'args
    success : 'a -> 'msg'
    error : exn -> 'msg'

Returns: (('msg' -> 'b) -> 'b) list
task : 'args -> 'a
a : 'args
success : 'a -> 'msg'
error : exn -> 'msg'
Returns: (('msg' -> 'b) -> 'b) list

exec task a

Full Usage: exec task a

Parameters:
    task : 'args -> unit
    a : 'args

Returns: ('a -> unit) list
task : 'args -> unit
a : 'args
Returns: ('a -> unit) list

perform task a success

Full Usage: perform task a success

Parameters:
    task : 'args -> 'a
    a : 'args
    success : 'a -> 'msg'

Returns: (('msg' -> unit) -> unit) list
task : 'args -> 'a
a : 'args
success : 'a -> 'msg'
Returns: (('msg' -> unit) -> unit) list

Type something to start searching.