You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried a custom function #ValueFromArray(#(colors), #(index)) but got:
No exact match for function ValueFromArray(_ : variable($:index)); 1 possible matches: ValueFromArray(_: Array, _: Int)"}
publicstructValueFromArray:LeafFunction,StringReturn,Invariant{publicstaticvarcallSignature:[LeafCallParameter]{[.array,.int]}publicfunc evaluate(_ params:LeafCallValues)->LeafData{
guard let array =params[0].array else{return.error("`ValueFromArray` must be called with an array parameter.")}
guard let index =params[1].int else{return.error("`ValueFromArray` must be called with an int parameter.")}returnarray[index]}}
Thx for your Help, great work for the 4.0.0-tau.1 release, only documentation is hard (to find and also to create i know).
The text was updated successfully, but these errors were encountered:
was looking over the leaf-kit source code and found that count would be something to find a hint how to solve this but there is a deactivated test case with a todo:
// TODO: Reimplement #count
Hey, just looking for a possibility to use two variables together to access an index of an array(Strings) like this:
Example:
Swift example:
I tried a custom function #ValueFromArray(#(colors), #(index)) but got:
No exact match for function ValueFromArray(_ : variable($:index)); 1 possible matches: ValueFromArray(_: Array, _: Int)"}
Thx for your Help, great work for the 4.0.0-tau.1 release, only documentation is hard (to find and also to create i know).
The text was updated successfully, but these errors were encountered: