2 properties
(Constant
= true
)
7 function ret
= equal
(a
,b
)
9 ota
= class(a
); otb
= class(b
);
10 if ~
(strcmp(ota
,otb
) || ...
11 (types.sequential_Q
(a
) && types.sequential_Q
(b
)))
15 case {'types.List', 'types.Vector'}
16 if ~
(length(a
) == length(b
))
20 if ~
(types.equal
(a.
get(i
), b.
get(i
)))
32 function ret
= sequential_Q
(obj
)
33 ret
= strcmp(class(obj
), 'types.List') || ...
34 strcmp(class(obj
), 'types.Vector');
37 function ret
= list_Q
(obj
)
38 ret
= strcmp(class(obj
), 'types.List');
40 function ret
= vector_Q
(obj
)
41 ret
= strcmp(class(obj
), 'types.Vector');
43 function ret
= hash_map_Q
(obj
)
44 ret
= strcmp(class(obj
), 'types.HashMap');
47 function ret
= keyword
(str
)
48 ret
= sprintf('%s%s', native2unicode
(hex2dec('029e'),'UTF-8'), ...
51 function ret
= keyword_Q
(obj
)
52 ret
= length(obj
) > 1 && ...
53 strcmp(obj
(1), native2unicode
(hex2dec('029e'),'UTF-8'));