FSharpx.Extras


Undo Module

Types

Type Description

History<'T>

Functions and values

Function or value Description

combineWithCurrent f x

Full Usage: combineWithCurrent f x

Parameters:
    f : 'a -> 'b -> 'a
    x : 'b

Returns: State<unit, History<'a>>
f : 'a -> 'b -> 'a
x : 'b
Returns: State<unit, History<'a>>

current history

Full Usage: current history

Parameters:
Returns: 'a
history : History<'a>
Returns: 'a

exec m s

Full Usage: exec m s

Parameters:
    m : 'a -> 'b * History<'c>
    s : 'a

Returns: 'c
m : 'a -> 'b * History<'c>
s : 'a
Returns: 'c

getCurrent

Full Usage: getCurrent

Returns: State<'T, History<'T>>
Returns: State<'T, History<'T>>

getHistory

Full Usage: getHistory

Returns: 'a -> 'a * 'a
Returns: 'a -> 'a * 'a

newHistory x

Full Usage: newHistory x

Parameters:
    x : 'a

Returns: History<'a>
x : 'a
Returns: History<'a>

putToHistory x

Full Usage: putToHistory x

Parameters:
    x : 'a

Returns: State<unit, History<'a>>
x : 'a
Returns: State<unit, History<'a>>

redo

Full Usage: redo

Returns: State<bool, History<'T>>
Returns: State<bool, History<'T>>

undo

Full Usage: undo

Returns: State<bool, History<'T>>
Returns: State<bool, History<'T>>

undoable

Full Usage: undoable

Returns: StateBuilder
Returns: StateBuilder