feat(tvix/eval): Implement builtins.genList

Change-Id: Iabe28656229f508226b244d81382e517961eb3cf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6901
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Griffin Smith 2022-10-08 15:20:27 -04:00 committed by clbot
parent b6089fb1e5
commit 0e97555644
4 changed files with 19 additions and 0 deletions

View file

@ -359,6 +359,12 @@ impl Display for Value {
}
}
impl From<i64> for Value {
fn from(i: i64) -> Self {
Self::Integer(i)
}
}
fn type_error(expected: &'static str, actual: &Value) -> ErrorKind {
ErrorKind::TypeError {
expected,