string

From The K Language Wiki
Revision as of 06:42, 9 July 2022 by Promovicz (talk | contribs) ("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"