Native Types
The following sections describe the native types that are built into ANDi.
Primitive Types
Those types work out of the box, and you don't need to directly reference them, they are listed here for completeness
- class bool
- class uint8
- class uint16
- class uint16
- class uint32
- class uint64
- class int
- class int8
- class int16
- class int16
- class int32
- class int64
- class float
- class double
- class decimal
- class DateTime
- class TimeSpan
- class Type
- class str
See String Methods and String Formatting Operations in Python Standard Documentation for more details
- class Func
Denotes a function
- class object
Denotes any type
Sequence Types
Multiple sequence types are used in ANDi, the most common ones are listed below.
- class List
Generic purpose sequence
- class IList
Generic purpose sequence
- class Array
Fixed Size Sequence
- class IReadOnlyList
Immutable list
- class Tuple
Immutable sequence
- class IEnumerable
Unindexable sequence
- class ICollection
Unindexable, unordered sequence
This table lists the sequence operations, s and t are sequences of the same type; n, i, j and k are integers:
Operation |
B |
---|---|
x in s |
True if an item of s is equal to x, else False |
x not in s |
False if an item of s is equal to x, else True |
s + t |
the concatenation of s and t |
s * n, n * s |
equivalent to adding s to itself n times |
s[i] |
item of s, origin 0 |
s[i:j] |
slice of s from i to j |
s[i:j:k] |
slice of s from i to j with step k |
len(s) |
length of s |
min(s) |
smallest item of s |
max(s) |
largest item of s |
Mapping Types
See Mapping Types in Python Standard Documentation for more details
- class Dictionary
- class dict