any
lib callCapy
function any(value : string) any function any(value : s32) any function any(value : s64) any function any(value : u64) any function any(value : f64) any function any(value : bool) any function any(value : any) any
Description
any() converts a scalar or typed array to a dynamic value.
Map literals already create any values. They do not need a constructor. Existing any input stays an any value.
Parameters
value : a scalar, literal structure, or any
Return Values
An any value.
Example
Capy
var scores := any([1, 2, 3])
var profile := {name: "Ada", scores: scores}
print(profile.name, " ", length(profile.scores), "\n")
Output
Ada 3