Open emil14 opened 6 months ago
idx
to APItype FindResult<T> struct {
idx int
data T
}
Find<T>(data stream<T>) (res FindResult, miss any)
Idx
componentAlternative could be having Idx
or Index
component for cases where you need index.
However, if you need both idx and data you'll have to chain it with some "Get" component.
Problem is we currently only have lists.Get
(I think?) and to use it with Idx
one have to pack stream into list which kinda defats the purpose of the stream
Almost same as #289 except
API
Example usage
Output should be
"You found me!"