concat
fn concat<T>(Vec<T> a, Vec<T> b) -> Vec<T> Import
Source: use collections::vec::{concat}; src/collections/vec.hy Returns a new vector holding the elements of a followed by those of b.
Parameters#
| Name | Type |
|---|---|
a | Vec<T> |
b | Vec<T> |
Returns#
Vec<T>
Contracts#
Checked according to --contracts (see Contracts).
ensures result.len() == a.len() + b.len()
See also#
fold_int: The same asfold; kept for older code.contains: Returnstruewhenneedleis inxs.index_of: Returns the index of the firstneedleinxs, or-1.binary_search: Findsneedlein the ascending vectorxsby halving, and returns an index holding it.dedup: Returnsxswith runs of equal neighbours collapsed to one value.map: Returns a new vector withmapperapplied to each element, in order.filter: Returns the elements for whichpredistrue, in order.first: Returns the first element, orNonewhenxsis empty.