Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 2.93 KB

File metadata and controls

32 lines (20 loc) · 2.93 KB

insert()

Inserts a new header-value at a certain position within the output data.

For e.g.: insert(3, @critter)

This match component creates a new header at index 3 (0-based) and sets the value for each line of output to the @critter variable.

Data signatures
insert( insert at index: $${\color{green}int}$$, insert header name: $${\color{green}str}$$, data: $${\color{green}None}$$ ǁ $${\color{green}Any}$$ )
Call signatures
insert( insert at index: Term, insert header name: Term, data: Variable ǁ Header ǁ Function ǁ Reference )
Purpose Value
Main focus insert() is a side-effect
Context Qualifier
Match qualifiers onmatch
Value qualifiers onmatch

[Back to index]