4m: Formatting Functions

+scot

Render $dime as $cord.

Renders a $dime .mol as a $cord.

Accepts

.mol is a $dime.

Produces

A $cord.

Source

++  scot
  ~/  %scot
  |=(mol=dime ~(rent co %$ mol))

Examples

> (scot %p ~pillyt)
~.~pillyt
> `@t`(scot %p ~pillyt)
'~pillyt'

+scow

Render $dime as $tape.

Renders a $dime .mol as a $tape.

Accepts

.mol is a $dime.

Produces

A $tape.

Source

Examples


+slat

Curried slaw.

Produces a $gate that parses a $knot .txt to a +unit containing the $atom of the aura specified by .mod. The +unit will be null if parsing failed.

Accepts

.mod is a $knot.

.txt is a $cord.

Produces

A (unit @).

Source

Examples


+slav

Demand: parse $cord with input aura.

Parses a $cord .txt to an $atom of the aura specificed by .mod. Crashes if it fails to parse.

Accepts

.mod is a $term

.txt is a $knot.

Produces

an $atom.

Source

Examples


+slaw

Parse $cord to input aura.

Parses a $cord .txt to a +unit containing the $atom of the aura specified by .mod. The +unit is null if parsing failed.

Accepts

.mod is a $term.

.txt is a $knot.

Produces

A (unit @).

Source

Examples


+slay

Parse $cord to $coin.

Parses a $cord .txt to the unit of a $coin.

Accepts

.txt is a @ta.

Produces

A (unit coin).

Source

Examples


+smyt

Render $path as $tank.

Renders the $path .bon as a $tank, which is used for pretty-printing.

Accepts

.bon is a $path.

Produces

A $tank.

Source

Examples


+spat

Render $path as $cord.

Renders a $path .pax as $cord.

Accepts

.pax is a $path.

Produces

A $cord.

Source

Examples


+spud

Render $path as $tape.

Renders a $path .pax as $tape.

Accepts

.pax is a $path.

Produces

A $tape.

Source

Examples


+stab

Parse $cord to $path.

Parses a $cord .zep to a static $path. Crashes if it fails to parse.

Accepts

.zep is a @t.

Produces

A $path, or crash.

Source

Examples


+stap

Path parser.

Parsing $rule. Parses a $path, used internally by +stab.

Source

Examples


Last updated