diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/builtins/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 594263edb468..ce048e22be0d 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -60,6 +60,9 @@ fn pure_builtins() -> Vec<Builtin> { // TODO: toString is actually not the same as Display Ok(Value::String(format!("{}", args[0]).into())) }), + Builtin::new("typeOf", 1, |args| { + Ok(Value::String(args[0].type_of().into())) + }), ] } |