Skip to main content

Append To List (append)

Laurence MorganLess than 1 minuteBuiltin CommandsList / Array Editing

Append To List (append)

Add data to the end of an array

Description

append data to the end of an array.

Usage

<stdin> -> append value -> <stdout>

Examples

» a [Monday..Sunday] -> append Funday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Funday

Detail

prepend and append are data type aware:

» tout json [1,2,3] -> append 4 5 6 bob
Error in `append` (1,22): cannot convert 'bob' to a floating point number: strconv.ParseFloat: parsing "bob": invalid syntax

Synonyms

  • append
  • list.append

See Also


This document was generated from builtins/core/lists/append_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence,Olivier Refalo