github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/suffix.md (about) 1 # `suffix` 2 3 > Prefix a string to every item in a list 4 5 ## Description 6 7 Takes a list from STDIN and returns that same list with each element suffixed. 8 9 ## Usage 10 11 ``` 12 <stdin> -> suffix str -> <stdout> 13 ``` 14 15 ## Examples 16 17 ``` 18 ยป ja [Monday..Wednesday] -> suffix foobar 19 [ 20 "Mondayfoobar", 21 "Tuesdayfoobar", 22 "Wednesdayfoobar" 23 ] 24 ``` 25 26 ## Detail 27 28 Supported data types can queried via `runtime` 29 30 ``` 31 runtime --marshallers 32 runtime --unmarshallers 33 ``` 34 35 ## Synonyms 36 37 * `suffix` 38 * `list.suffix` 39 40 41 ## See Also 42 43 * [`a` (mkarray)](../commands/a.md): 44 A sophisticated yet simple way to build an array or list 45 * [`count`](../commands/count.md): 46 Count items in a map, list or array 47 * [`ja` (mkarray)](../commands/ja.md): 48 A sophisticated yet simply way to build a JSON array 49 * [`lang.MarshalData()` (system API)](../apis/lang.MarshalData.md): 50 Converts structured memory into a Murex data-type (eg for stdio) 51 * [`lang.UnmarshalData()` (system API)](../apis/lang.UnmarshalData.md): 52 Converts a Murex data-type into structured memory 53 * [`left`](../commands/left.md): 54 Left substring every item in a list 55 * [`prefix`](../commands/prefix.md): 56 Prefix a string to every item in a list 57 * [`right`](../commands/right.md): 58 Right substring every item in a list 59 * [`runtime`](../commands/runtime.md): 60 Returns runtime information on the internal state of Murex 61 62 <hr/> 63 64 This document was generated from [builtins/core/lists/push_pop_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/lists/push_pop_doc.yaml).