Jump to content

Type detection: Difference between revisions

m
Line 1,010:
JSON document, and if so, what JSON type it would have, as follows:
 
def typeof:
try (fromjson | type) catch "string" ;
 
Here is an illustrative transcript from an interactive session showing input and output on alternate lines:
Line 1,023:
"array"
</pre>
 
 
 
=={{header|Julia}}==
2,472

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.