Function in collections::vec coil-stdlib

concat

fn concat<T>(Vec<T> a, Vec<T> b) -> Vec<T>
Import
use collections::vec::{concat};
Source: src/collections/vec.hy

Returns a new vector holding the elements of a followed by those of b.

Parameters#

NameType
aVec<T>
bVec<T>

Returns#

Vec<T>

Contracts#

Checked according to --contracts (see Contracts).

ensures result.len() == a.len() + b.len()

See also#

  • fold_int: The same as fold; kept for older code.
  • contains: Returns true when needle is in xs.
  • index_of: Returns the index of the first needle in xs, or -1.
  • binary_search: Finds needle in the ascending vector xs by halving, and returns an index holding it.
  • dedup: Returns xs with runs of equal neighbours collapsed to one value.
  • map: Returns a new vector with mapper applied to each element, in order.
  • filter: Returns the elements for which pred is true, in order.
  • first: Returns the first element, or None when xs is empty.
↑ ↓ navigate ↵ open