ogma icon indicating copy to clipboard operation
ogma copied to clipboard

[FEATURE] `while` implementation

Open kurtlawrence opened this issue 2 years ago • 0 comments

Description

An implementation of while, repeating an expression while a predicate remains true.

What is the input into the expression?

  • Is it the block's input? This would make sense for initialisation.
  • Or is it like fold which takes a seed value.
  • Possibly accept both arity.

How is the return value treated?

  • Is it much like fold where input->output->input, etc

Implementing while also opens up the possibility of endless loops. Does ogma provide support to detect this and error on runtime?

kurtlawrence avatar Mar 08 '22 00:03 kurtlawrence