feat(tvix/eval): implement list concatenation
Change-Id: Icdf715d116371a9f139bdf95266410bf967bef25 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6144 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
4eafaae9e6
commit
75a22321ce
7 changed files with 30 additions and 0 deletions
|
|
@ -18,3 +18,12 @@ impl Display for NixList {
|
|||
f.write_str("]")
|
||||
}
|
||||
}
|
||||
|
||||
impl NixList {
|
||||
pub fn concat(&self, other: &Self) -> Self {
|
||||
let mut lhs = self.clone();
|
||||
let mut rhs = other.clone();
|
||||
lhs.0.append(&mut rhs.0);
|
||||
lhs
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue