diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs index 15a709730..f3638e69c 100644 --- a/tvix/eval/src/value/attrs.rs +++ b/tvix/eval/src/value/attrs.rs @@ -299,6 +299,12 @@ impl NixAttrs { }) } + /// Same as iter(), but marks call sites which rely on the + /// iteration being lexicographic. + pub fn iter_sorted<'a>(&'a self) -> Iter> { + self.iter() + } + pub fn into_iter(self) -> IntoIter { match self.0 { AttrsRep::Empty => IntoIter(IntoIterRepr::Empty),