We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94dc668 commit 2cd0165Copy full SHA for 2cd0165
src/main/java/org/piccode/rt/PiccodeValue.java
@@ -43,7 +43,12 @@ public static Type of(PiccodeValue value) {
43
if (value instanceof PiccodeBoolean) return BOOLEAN;
44
if (value instanceof PiccodeObject ) return OBJECT;
45
if (value instanceof PiccodeTuple ) return TYPLE;
46
+ if (value instanceof PiccodeArray ) return ARRAY;
47
if (value instanceof PiccodeClosure) return CLOSURE;
48
+ if (value instanceof PiccodeUnit ) return UNIT;
49
+ if (value instanceof NativeFunction) return NATIVEFUNCTION;
50
+
51
+ System.out.println(value + " : " + value.getClass());
52
return VALUE;
53
}
54
0 commit comments