types package
Prototype extensions for native types:
FatScript does not load these definitions automatically into global scope, therefore you have to explicitly import those where needed
Importing
If you want to make all of them available at once you can simply write:
_ <- fat.type._
...or import one-by-one, as needed, e.g.:
_ <- fat.type.List
Common trait
All types on this package support the following prototype methods:
- apply (constructor)
- isEmpty
- nonEmpty
- size
- toText