☰

# std/prelude

Theme:

- Manual
- Standard library
- Index
- Compiler docs
- Fusion docs
- devel, stable

Search:
Source Edit

This is an include file that simply imports common modules for your convenience.

Example:

    import std/prelude
    include std/prelude
      # same as:
      # import std/[os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt, strformat]
    let x = 1
    assert "foo $# $#" % [$x, "bar"] == "foo 1 bar"
    assert toSeq(1..3) == @[1, 2, 3]
    when not defined(js) or defined(nodejs):
      assert getCurrentDir().len > 0
      assert ($now()).startsWith "20"

# Imports

compilesettings, os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt, strformat