lPut

HC Data Structure Primitives Constructors lPut
fPut Array

lPut thing list


outputs a list equal to its second input with one extra member, the first input, at the end.

lPut is slow because internally the list must be gone through till its end, then the thing can be appended.

Array types are now supported (4.689).

Examples:

show lput "World [Hallo]	;[Hallo world]
show lput [World] [Hallo]	;[Hallo [World]]
show lput 34 12
;  lput doesn't like 12 as input
show lput 34 [12]		;[12 34]
show lput 34 {12}		;{12 34}

Example:

References:

fPut Array