The standard library is the set of ready-made tools that come with Turf, so common jobs (printing, text, lists, files, JSON, a web server) need nothing extra. This page lists every module and what you write to use it.
01
These modules are loaded into every program. You never write an import for them.
n.gcd(m), x.round(), c.is_digit()StringBuildersum, max, min, contains, index_of over int[], double[], string[]existsabs, min, max, clamp, power, libm functions, divide, constantspanic, exit, abort02
These sit on the shelf until you ask for them with the import line shown. Each file that uses one needs its own import.
List<T>, a growable arrayimport list::List;Stack<T>, last in first outimport stack::Stack;Queue<T>, first in first outimport queue::Queue;Map<K, V>, a hash mapimport map::Map;Set<T>, a hash setimport set::Set;hash(x), the hash Map and Set useimport hashing;import net;import fs;import os;import time;import random;import mem;import json;import http;assert, assert_eq, failimport test;