Closed nshaheed closed 9 months ago
This is my first-draft attempt at adding array support in Type. Currently there's some inconsistency in behavior. The following code:
Type
[1] @=> int arr_prim[]; <<< Type.of(arr_prim).name() >>>; <<< Type.of(arr_prim).isArray() >>>; <<< Type.find("int[]").name() >>>; <<< Type.find("int[]").isArray() >>>;
Prints out
"@array" :(string) 0 :(int) "int[]" :(string) 1 :(int)
So, isArray() is working for find, but not of.
isArray()
find
of
This is my first-draft attempt at adding array support in
Type
. Currently there's some inconsistency in behavior. The following code:Prints out
So,
isArray()
is working forfind
, but notof
.