feat(tvix/eval): introduce initial Lambda type
Change-Id: Ifa9766f5ffeff99e926936bafd697e885e733b78 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6238 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
3ed40b4eea
commit
d57366a6c2
2 changed files with 18 additions and 0 deletions
12
tvix/eval/src/value/lambda.rs
Normal file
12
tvix/eval/src/value/lambda.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
//! This module implements the runtime representation of functions.
|
||||
use std::rc::Rc;
|
||||
|
||||
use crate::chunk::Chunk;
|
||||
|
||||
use super::NixString;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Lambda {
|
||||
name: Option<NixString>,
|
||||
chunk: Rc<Chunk>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue