package kdl
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Kdl.LSource
Note: These lenses are mostly meant for getting, set is generally inefficient.
l1 |-- l2 is an infix operator for compose l2 l1.
(.@()<-) is an indexing operator for set: it allows you to write document.@(lens) <- value instead of set document value lens.
Lens to node.annot as an option. Pass None to remove the annotation.
Lens to node.args.
arg n is a lens to the n-th argument of a node, starting at 0. This operates in O(n) time.
Lens to the property with the specific name. Operates in O(n) time.
node ?annot name is a lens to the first node with the specific name in a list. The search optionally can be narrowed by passing ?annot.
Same as node, but returns all possible matches instead of the first one.
child ?annot name is children |-- node ?annot name.
child_many ?annot name is children |-- node_many ?annot name.
Lens to value in the annot_value pair.
Lens to annot in the annot_value pair.
Lens to annot as an option. Pass None to unset the annotation.
Lens to any numeric KDL value.
string_value is value |-- string.
int_value is value |-- int.
raw_int_value is value |-- raw_int.
float_value is value |-- float.
bool_value is value |-- bool.
null_value is value |-- null.