chainlet.primitives.neutral module¶
-
class
chainlet.primitives.neutral.
NeutralLink
¶ Bases:
chainlet.primitives.link.ChainLink
An chainlink that acts as a neutral element for linking
This link does not have any effect on any data chunk passed to it. It acts as a neutral element for linking, meaning its presence or absence in a chain does not have any effect.
This element is useful when an element is syntactically required, but no action on data is desired. It can be used to force automatic conversion, e.g. when linking to a
tuple
of elements.Note: A NeutralLink
does have an effect in a bundle. It creates an additional branch which passes on data unchanged.-
chainlet_send
(value=None)¶ Send a value to this element for processing
-