# System functions

A system function is a built-in function whose name starts with [`•`](glyphs/bullet.md), as in `•ucs` or `•json`. Type [`•`](https://bpl.fast.ai//glyphs/bullet.html) 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](scripts.md#superscripts) 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](system/constants.md) 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 [`⍎`](glyphs/hydrant.md) 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](glyphs/jot-diaeresis.md)'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 [`•`](https://bpl.fast.ai//glyphs/bullet.html). 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](python.md) covers the calling conventions.

## Text

| Name | Description |
|--- |--- |
| [`•c`](system/c.md) | Case |
| [`•ucs`](system/ucs.md) | Unicode |
| [`•normalize`](system/normalize.md) | Unicode normalization |
| [`•r`](system/r.md) | Regular expression matches |
| [`•replace`](system/replace.md) | Regular expression replacement |

## Data and files

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

## Display

| Name | Description |
|--- |--- |
| [`•element`](system/element.md) | XML elements |
| [`•xml`](system/xml.md) | XML text |
| [`•svg`](system/svg.md) | SVG pictures |
| [`•mime`](system/mime.md) | Rich display |
| [`•plot`](system/plot.md) | Plots |
| [`•image`](system/image.md) | Images |
| [`•canvas`](system/canvas.md) | Drawing with JavaScript |
| [`•prefs`](system/prefs.md) | Session settings |

## Linear algebra

| Name | Description |
|--- |--- |
| [`•decompose`](system/decompose.md) | Matrix decompositions |

## Special functions

| Name | Description |
|--- |--- |
| [`•special`](system/special.md) | Gamma, error and beta functions |

## Random numbers and distributions

| Name | Description |
|--- |--- |
| [`•rand`](system/rand.md) | Generator |
| [`•distribution`](system/distribution.md) | Distributions |

## Positions

| Name | Description |
|--- |--- |
| [`•index`](system/index.md) | Fresh indices |
| [`•edge`](system/edge.md) | Edge modes |

## Programs

| Name | Description |
|--- |--- |
| [`•load`](system/load.md) | Load |
| [`•signal`](system/signal.md) | Signal |
| [`•storage`](system/storage.md) | Storage |
| [`•detach`](system/detach.md) | Detach |
| [`•float`](system/float.md) | Float width |
| [`•time`](system/time.md) | Timing |
| [`•host`](system/host.md) | Host facts |
| [`•delay`](system/delay.md) | Delay |
| [`•js`](system/js.md) | JavaScript functions, in the browser |

## Introspection

| Name | Description |
|--- |--- |
| [`•nc`](system/nc.md) | Name class |
| [`•nl`](system/nl.md) | Name list |
| [`•src`](system/src.md) | Source |
| [`•ex`](system/ex.md) | Erase |
| [`•explain`](system/explain.md) | Explain |
| [`•memory`](system/memory.md) | Memory |
