flow = "index_f"
docs = "index_f.md"
[metadata]
description = "A wrapper flow to simplify the use of the index function for standard use cases"
[[input]]
name = "value"
[[input]]
name = "select_index"
type = "number"
[[output]]
name = "selected_value"
[[process]]
source = "lib://flowstdlib/control/index"
input.previous_index = { once = -1 }
input.previous_value = { once = 42 }
[[connection]]
from = "input/value"
to = "index/value"
[[connection]]
from = "input/select_index"
to = "index/select_index"
[[connection]]
from = "index/value"
to = "index/previous_value"
[[connection]]
from = "index/index"
to = "index/previous_index"
[[connection]]
from = "index/selected_value"
to = "output/selected_value"