aboutsummaryrefslogtreecommitdiff
path: root/go/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'go/src/types')
-rw-r--r--go/src/types/types.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/go/src/types/types.go b/go/src/types/types.go
index e3d8163..9fcc78c 100644
--- a/go/src/types/types.go
+++ b/go/src/types/types.go
@@ -34,3 +34,19 @@ func List_Q(obj MalType) bool {
default: return false
}
}
+
+// Vectors
+func Vector_Q(obj MalType) bool {
+ switch obj.(type) {
+ case Vector: return true
+ default: return false
+ }
+}
+
+// Hash Maps
+func Hash_Map_Q(obj MalType) bool {
+ switch obj.(type) {
+ case map[string]MalType: return true
+ default: return false
+ }
+}