13 of 15
The standard library
Modules from the standard library start with std:. Import a whole namespace or single names:
pleno
import { JSON } from "std:json";
import { Math } from "std:math";
import { sqrt } from "std:math";
print(Math.max(3, 7), sqrt(16.0));RunThere are modules for files, paths, HTTP, JSON, YAML, TOML, CSV, regular expressions, dates, cryptography and more; see the standard library reference. Your own files are modules too: export fn in utils.pln, then import { helper } from "./utils.pln";.
In the browser, files, the network and processes are not available.
Your turn
Parse the JSON text and print how many books cost less than 20.