Type Checking functions
For faster and efficient checking of the types of values, SRON provides 7 functions
1. isVoid():
{
name : Main
Any val = Void
if : {
condition : isVoid(val)
println("Value is Void")
}
else : {
println("Value is not Void")
}
}OUTPUT:
2. isInt():
OUTPUT:
3. isDouble():
OUTPUT:
4. isChar():
OUTPUT:
5. isBool():
OUTPUT:
6. isCollective():
OUTPUT:
7. isString():
OUTPUT:
8. isList():
OUTPUT:
9. isFileReader():
OUTPUT:
10. isFileWriter():
OUTPUT:
11. isLiteralString():
OUTPUT:
Last updated