JwithStrings/Converting Strings
Jump to navigation
Jump to search
J with Strings: Converting Strings
Back to: Table of Contents
J has more than one way of storing a set of strings.
In this chapter we discuss the different ways of storing data in the form of strings, the advangages and disadvantages of the different ways, and how to convert between them.
Four different kinds of string data
Converting between different kinds of string
zulu.ijs
Mention equivalences with: boxopen, boxxopen, cutopen
Various configs of zulu (edit zulu.ijs)
phonetic 'Hallo'
cut
Defining nouns of different type in scripts using 0 : 0
0 : 0 -is a handy format for use in a script can store all kinds of string, or even num arrays.
OBS: don't need a final ')'
ss=: }: 0 : 0 NB. to drop final LF
cr'zub'
<;._1 ' alpha bravo charlie'
cuT Cut (zcut.ijs) Trailing & leading frets
crex -to read strings with embedded LFs
-- Ian Clark <<DateTime(2012-08-25T10:01:06Z)>>