From d64165e9e6af92bfe350e5d2cc46545b28dbb5c0 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Tue, 5 Aug 2025 18:07:50 +0300 Subject: Added vectors and tests for their evaluation and typing --- src/type/util.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/type/util.rs') diff --git a/src/type/util.rs b/src/type/util.rs index 9be8c6e..85e64f1 100644 --- a/src/type/util.rs +++ b/src/type/util.rs @@ -9,3 +9,6 @@ pub fn vt(name: &str) -> Type { VarType(name.to_string()) } +pub fn vecof(ty: impl Into>) -> Type { + VecOf(ty.into()) +} -- cgit v1.2.3