Version: 1.1.0
Types reference
These types are available without importing a third-party package. Several live in builtin and are in scope automatically.
Essentials
- Numeric:
Int,UInt,Float16,Float32,Float64,SIMD. - Text:
String,StringSlice. - Collections:
List,Dict,Set,Optional,Tuple,Variant. - Memory:
UnsafePointer,Span,InlineArray. - Errors:
Error.
Example
def main():
var found: Optional[Int] = 4
if found:
print(found.value())
Keep in mind
The standard library index groups the same types by module.