Skip to main content

System functions

A system function is a built-in function whose name starts with •, as in •ucs or •json. Type • with Alt-y. Names are case-insensitive. Many system functions take their options as a left argument. A function named for a format reads that format, and its inverse writes it: •json reads JSON, and •json⁻ writes it. Each name below links to its page. ]help •name shows the same page. Built-in values have names that start with $, as Constants and $ names describes.

A function that takes one string, such as •json or •element, applies to each string of an array of strings, and to each row of a character matrix, as ⍎ does. A function that takes one number, such as •uuid, applies to each number of an array. The results form an array of the argument’s shape. Results from the rows of a character matrix are assembled as Rank’s results are. For an empty argument, the function returns an empty array of its usual result type, such as an empty list of strings from •src. The whole left argument is passed with each item or row of the right argument. The pages for •c, •date, •path and •metadata give their rules for array arguments.

In Python, the workspace object bpl has each system function under its name without •. Pass options as keyword arguments, as in bpl.json('{"a": null}', fill=0). Use .undo for the inverse, as in bpl.json.undo(Y) for •json⁻. Python covers the calling conventions.

Text

Name Description
•c Case
•ucs Unicode
•normalize Unicode normalization
•r Regular expression matches
•replace Regular expression replacement

Data and files

Name Description
•csv CSV
•json JSON
•literal Literals
•vfi Numeric input
•date Dates
•nget Read a file
•nput Write a file
•fetch Fetch a URL
•path Paths
•metadata File metadata
•readdir List a directory
•copy Copy
•rename Rename
•remove Remove
•mkdir Make a directory
•deflate Compression
•hash Hashing
•uuid UUIDs

Display

Name Description
•element XML elements
•xml XML text
•svg SVG pictures
•mime Rich display
•plot Plots
•image Images
•canvas Drawing with JavaScript
•prefs Session settings

Linear algebra

Name Description
•decompose Matrix decompositions

Special functions

Name Description
•special Gamma, error and beta functions

Random numbers and distributions

Name Description
•rand Generator
•distribution Distributions

Positions

Name Description
•index Fresh indices
•edge Edge modes

Programs

Name Description
•load Load
•signal Signal
•storage Storage
•detach Detach
•float Float width
•time Timing
•host Host facts
•delay Delay
•js JavaScript functions, in the browser

Introspection

Name Description
•nc Name class
•nl Name list
•src Source
•ex Erase
•explain Explain
•memory Memory