Stdlib Overview
FScript ships with a built-in standard library and a small set of always-available top-level built-ins.
Everything in this section is available in every script without imports.
Modules
ListOptionMapStringIntFloatBool
Top-level built-ins
Envprintignore
Core rules
- Functions are curried.
- Pipe-friendly usage is preferred.
- Map keys are always
string(map indexer type is fixed to string). - Many parsing/indexing operations return
optioninstead of throwing.
Built-in types
type Environment = { ScriptName: string option; Arguments: string list }type FsKind = File of string | Directory of string | Missing
Where to go next
- Built-ins for
Env,Environment,FsKind,print, andignore - Native Types Reference for list/map indexers and native type access forms
- List Module
- Option Module
- Map Module
- String Module
- Int, Float, Bool Modules