github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/lists/append_doc.yaml (about) 1 - DocumentID: prepend 2 Title: >- 3 `prepend` 4 CategoryID: commands 5 Summary: >- 6 Add data to the start of an array 7 Description: |- 8 `prepend` a data to the start of an array. 9 Usage: |- 10 ``` 11 <stdin> -> prepend: value -> <stdout> 12 ``` 13 Examples: |- 14 ``` 15 » a [January..December] -> prepend: 'New Year' 16 New Year 17 January 18 February 19 March 20 April 21 May 22 June 23 July 24 August 25 September 26 October 27 November 28 December 29 ``` 30 Detail: |- 31 `prepend` and `append` are data type aware: 32 33 ``` 34 » tout json [1,2,3] -> append 4 5 6 bob 35 Error in `append` (1,22): cannot convert 'bob' to a floating point number: strconv.ParseFloat: parsing "bob": invalid syntax 36 ``` 37 Synonyms: 38 - prepend 39 - list.prepend 40 Related: 41 - item-index 42 - element 43 - cast 44 - append 45 - addheading 46 - a 47 - ja 48 - count 49 - mtac 50 - msort 51 - match 52 - regexp 53 54 - DocumentID: append 55 Title: >+ 56 `append` 57 CategoryID: commands 58 Summary: >- 59 Add data to the end of an array 60 Description: |- 61 `append` data to the end of an array. 62 Usage: |- 63 ``` 64 <stdin> -> append value -> <stdout> 65 ``` 66 Examples: |- 67 ``` 68 » a [Monday..Sunday] -> append Funday 69 Monday 70 Tuesday 71 Wednesday 72 Thursday 73 Friday 74 Saturday 75 Sunday 76 Funday 77 ``` 78 Detail: |- 79 `prepend` and `append` are data type aware: 80 81 ``` 82 » tout json [1,2,3] -> append 4 5 6 bob 83 Error in `append` (1,22): cannot convert 'bob' to a floating point number: strconv.ParseFloat: parsing "bob": invalid syntax 84 ``` 85 Synonyms: 86 - append 87 - list.append 88 Related: 89 - item-index 90 - element 91 - cast 92 - prepend 93 - addheading 94 - a 95 - ja 96 - count 97 - item-index 98 - range 99 - mtac 100 - msort 101 - match 102 - regexp