Skip to contents

Executes a while loop.

Usage

nvl_while(init, cond, body)

Arguments

init

(list())
Named list of initial state values.

cond

(function)
Condition function returning boolean.

body

(function)
Body function returning updated state.

Value

Final state after loop terminates.