Go to the first, previous, next, last section, table of contents.


getNthRestart

Function: getNthRestart { n -> id data rFn iFn tFn fn name }
file: job.t
package: muf
status: alpha

This function returns the contents of the nth restart from the top of the loop stack, along with a value which may be used to refer to it in future (the integer offset of the restart within the stack, as it happens -- but code should not be written to depend on this). The top restart is number zero.

The return values are:

name
:name symbol specified when creating restart.
fn
:function function specified when creating restart.
tFn
:testFunction function specified when creating restart.
iFn
:interactiveFunction function specified when creating restart.
rFn
:reportFunction function specified when creating restart.
data
:data value specified when creating restart, else nil.
id
nil if no nth restart was found, else a restart label usable with getRestart.
ok

Example:

Stack:
[ :function :: ; :name 'x | ]withRestartDo{ 0 getNthRestart }
Stack: 16 nil nil nil nil #<c-fn _> 'x


Go to the first, previous, next, last section, table of contents.