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
Fix 'list' method type: although there was an attempt to deal with 'list' types but it never worked (at least since v0.9.0).
Now we can create/redefine arrays, even dynamically as well.
Similarly to method.insert.value method, add the following methods that create public, mutable properties:
method.insert.bool
method.insert.string
method.insert.list
Examples:
# Defining propertiesmethod.insert = foo1, list, {"x1", "x2", "x3"}
method.insert = foo2, list|private, {10, 20, 30}
method.insert = bar1, list|const,
method.insert = bar2, list
method.insert.list = foo3, {"z1", "z2", "z3"}
# Accessing second element of an arrayprint=(array.at, (foo1), (value,1))
# Redefine arrayfoo1.set={1, 2}
# Calculationprint=(math.add, (foo1))
# Size of an arrayprint=(array.size, (foo1))
# Redefine array dynamicallyfoo1.set="$d.multicall2=active, cat=$d.state="
The text was updated successfully, but these errors were encountered:
Fix 'list' method type: although there was an attempt to deal with 'list' types but it never worked (at least since
v0.9.0
).Now we can create/redefine arrays, even dynamically as well.
Similarly to
method.insert.value
method, add the following methods that create public, mutable properties:method.insert.bool
method.insert.string
method.insert.list
Examples:
The text was updated successfully, but these errors were encountered: