diff options
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r-- | tvix/eval/src/value/list.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index da86fdda26ec..c00ddd4191ea 100644 --- a/tvix/eval/src/value/list.rs +++ b/tvix/eval/src/value/list.rs @@ -32,6 +32,10 @@ impl NixList { self.0.len() } + pub fn get(&self, i: usize) -> Option<&Value> { + self.0.get(i) + } + pub fn construct(count: usize, stack_slice: Vec<Value>) -> Self { debug_assert!( count == stack_slice.len(), |