Skip to main content
Version: 0.70.0

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

  • Console
  • Task
  • List
  • Option
  • Map
  • String
  • Int
  • Float
  • Bool

Top-level built-ins

  • Env
  • ignore

Core rules

  • Functions are curried.
  • Pipe-friendly usage is preferred.
  • Task values use the native 'a task type form.
  • Task.spawn starts concurrent work and Task.await synchronizes on the result.
  • Map keys are always string (map indexer type is fixed to string).
  • Many parsing/indexing operations return option instead 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