View Source Orb.Iterator behaviour (Orb v0.0.36)

Summary

Types

@type var_ref() :: %Orb.VariableReference{
  global_or_local: term(),
  identifier: term(),
  type: term()
}

Callbacks

@callback next(var_ref()) ::
  %Orb.Instruction{operands: term(), operation: term(), type: term()}
  | integer()
  | float()
@callback valid?(var_ref()) ::
  %Orb.Instruction{operands: term(), operation: term(), type: term()}
  | integer()
  | float()
@callback value(var_ref()) ::
  %Orb.Instruction{operands: term(), operation: term(), type: term()}
  | integer()
  | float()