about summary refs log tree commit diff
path: root/tvix/eval/src/value/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value/list.rs')
-rw-r--r--tvix/eval/src/value/list.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs
index 31f223fce599..77776c4dce62 100644
--- a/tvix/eval/src/value/list.rs
+++ b/tvix/eval/src/value/list.rs
@@ -38,4 +38,8 @@ impl NixList {
 
         NixList(stack_slice)
     }
+
+    pub fn into_iter(self) -> std::vec::IntoIter<Value> {
+        self.0.into_iter()
+    }
 }