Skip to content

array-push-front

Type ​

meta-lisp
(all (E) (-> (array-t E) E void-t))

Description ​

Prepend an element at the front in-place.

Examples ​

meta-lisp
(let ((a (@array 2 3)))
  (array-push-front a 1)
  a)
;; => (@array 1 2 3)