Skip to main content

concat ()

Merges two or more lists into one list.

Parameters

$values
The lists or single values to concatenate.
Type
ArgList
$separator
The type of separator to be used by the merged list. Must be passed by name.
Type
space | comma | slash | auto
Default
auto
$bracketed
Whether the merged list has square brackets or no brackets. Must be passed by name.
Type
Boolean | auto
Default
auto

Return Value

List
A list with all the values of the every given list.

Example

@use '@sass-fairy/list';

$list-one: 1 2 3;
$list-two: #fff #ccc #000;

@debug list.concat($list-one, 'x', 'y', $list-two, 'z');
// 1 2 3 "x" "y" #fff #ccc #000 "z"