github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/addheading.md (about)

     1  # `addheading` 
     2  
     3  > Adds headings to a table
     4  
     5  ## Description
     6  
     7  `addheading` takes a list of parameters and adds them to the start of a table.
     8  Where `prepend` is designed to work with arrays, `addheading` is designed to
     9  prepend to tables.
    10  
    11  ## Usage
    12  
    13  ```
    14  <stdin> -> addheading value value value ... -> <stdout>
    15  ```
    16  
    17  ## Examples
    18  
    19  ```
    20  ยป tout jsonl '["Bob", 23, true]' -> addheading name age active                                                                                   
    21  ["name","age","active"]
    22  ["Bob","23","true"]
    23  ```
    24  
    25  ## See Also
    26  
    27  * [`[ Index ]`](../parser/item-index.md):
    28    Outputs an element from an array, map or table
    29  * [`[[ Element ]]`](../parser/element.md):
    30    Outputs an element from a nested structure
    31  * [`a` (mkarray)](../commands/a.md):
    32    A sophisticated yet simple way to build an array or list
    33  * [`append`](../commands/append.md):
    34    Add data to the end of an array
    35  * [`cast`](../commands/cast.md):
    36    Alters the data type of the previous function without altering it's output
    37  * [`count`](../commands/count.md):
    38    Count items in a map, list or array
    39  * [`ja` (mkarray)](../commands/ja.md):
    40    A sophisticated yet simply way to build a JSON array
    41  * [`match`](../commands/match.md):
    42    Match an exact value in an array
    43  * [`msort`](../commands/msort.md):
    44    Sorts an array - data type agnostic
    45  * [`mtac`](../commands/mtac.md):
    46    Reverse the order of an array
    47  * [`prepend`](../commands/prepend.md):
    48    Add data to the start of an array
    49  * [`regexp`](../commands/regexp.md):
    50    Regexp tools for arrays / lists of strings
    51  
    52  <hr/>
    53  
    54  This document was generated from [builtins/core/arraytools/addheading_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/arraytools/addheading_doc.yaml).