Builtin Library
- ..
- .metadata179 B
- README.md527 B
- init.luau897 B
- readings.module
README.md
geometry.first
Read the first element of a column back from the device as a Number, for a count the rest of the graph sizes its work by: the total of a prefix sum, or the index a reduction picked. The cook waits for the device to answer.
Inputs
value(Column). The column read. Only its first element is answered.
Outputs
value(Number). The first element.
local total = g.geometry.first({ value = g.geometry.offsets({ counts = g.math.to_int(g.field.index({ domain = 4 }) * 0 + 3) }).total })