String: Difference between revisions

From The K Language Wiki
Content added Content deleted
No edit summary
m (Lowercase title)
Line 1: Line 1:
{{lowercase title}}
{{primitive|$x}}The '''string''' function, generally denoted by <code>$</code>, converts atoms to their string equivalents.
{{primitive|$x}}

The '''string''' function, generally denoted by <code>$</code>, converts atoms to their string equivalents.


The string primitive is [[Atomicity|right atomic]] and <code>$</code> on a character is the equivalent of [[enlist|enlisting]] it, except in kona, oK, k7, and k9 where character lists are treated as if they are atoms.
The string primitive is [[Atomicity|right atomic]] and <code>$</code> on a character is the equivalent of [[enlist|enlisting]] it, except in kona, oK, k7, and k9 where character lists are treated as if they are atoms.

Revision as of 21:27, 8 July 2022


String
$x

The string function, generally denoted by $, converts atoms to their string equivalents.

The string primitive is right atomic and $ on a character is the equivalent of enlisting it, except in kona, oK, k7, and k9 where character lists are treated as if they are atoms.

  $120 4
("120";,"4")
  $`beef
"beef"