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

Except for Void, all other types implement also the method freeze.

See also

results matching ""

    No results matching ""