feat(nix/eval): Implement builtins.groupBy
Change-Id: I3e0aa017a7100cbeb86d2e5747471b36affcc102 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7038 Autosubmit: grfn <grfn@gws.fyi> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
dfa4c4847c
commit
e2f0967d3f
3 changed files with 34 additions and 0 deletions
|
|
@ -49,6 +49,14 @@ mod arbitrary {
|
|||
}
|
||||
|
||||
impl NixList {
|
||||
pub fn new() -> Self {
|
||||
Self(vec![])
|
||||
}
|
||||
|
||||
pub fn push(&mut self, val: Value) {
|
||||
self.0.push(val)
|
||||
}
|
||||
|
||||
pub fn concat(&self, other: &Self) -> Self {
|
||||
let mut ret = self.clone();
|
||||
ret.0.extend_from_slice(&other.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue