Pre-fill one named default argument on a callable target.
This is mainly for building configuration operators such as axis_style. Because it is an operator, it interpolates from the callable's original default to the replacement during Lerp.
Copy let set_default = operator | target , name , value | .. . Copy play set_default { "similar_topo_hint" , 1 } TagTrans ( 1.5 , [ & shape ] )
Convert a value to a string.
Uses the same stringification rules as text constructors, so lists become concatenated text fragments.
Copy let to_string = | x | .. .
Convert an integer, float, or numeric string to an integer.
Float conversion truncates toward zero; strings are trimmed before parsing.
Convert an integer, float, or numeric string to a float.
Copy let to_float = | x | .. .
Real part of a number; non-complex numbers return themselves.
Imaginary part of a number; non-complex numbers return 0.
Runtime type name for a value.
Copy let type_of = | x | .. .
Test whether a live function/operator value has a named argument attribute.
Copy let has_attr = | x , name | .. .
Read a named argument attribute from a live function/operator value.
Copy let get_attr = | x , name | .. .
Return a value with a named live-call argument changed.
This is the dynamic form of ball.radius = 0.8; it returns the updated value so it works inside expressions.
Copy let set_attr = | x , name , value | .. . Copy ball = set_attr ( ball , "radius" , 0.8 )
Read callable default arguments.
Returns the names that can be pre-filled with set_default or set_defaults.
Copy let get_defaults = | x | .. .
Pre-fill multiple named default arguments on a callable target.
Map keys must be strings naming defaults on the target.
Copy let set_defaults = operator | target , defaults | .. .
Raise a runtime error with the given message.
Copy let runtime_error = | message | .. .
Test whether a value is nil.
Test whether a value is an integer.
Test whether a value is a float.
Copy let is_float = | x | .. .
Test whether a value is complex.
Copy let is_complex = | x | .. .
Test whether a value is numeric.
Copy let is_number = | x | .. .
Test whether a value is a string.
Copy let is_string = | x | .. .
Test whether a value is a list.
Copy let is_list = | x | .. .
Test whether a value is a map.
Test whether a value is a mesh.
Copy let is_mesh = | x | .. .
Test whether a value is a primitive animation.
Copy let is_primitive_anim = | x | .. .
Test whether a value is an animation block.
Copy let is_anim_block = | x | .. .
Test whether a value is a function.
Copy let is_function = | x | .. .
Test whether a value is an operator.
Copy let is_operator = | x | .. .
Test whether a value is a live function invocation.
Copy let is_live_function = | x | .. .
Test whether a value is a live operator invocation.
Copy let is_live_operator = | x | .. .
Test whether a value can be called.
Copy let is_callable = | x | .. .
Test whether a value is stateful.
Copy let is_stateful = | x | .. .