String
Strings in Cyclone
String
Strings in Cyclone are sequences of characters enclosed in double quotes. They are used to represent text data.
var s = "Hello, World!"String Concatenation
Strings can be concatenated using the + operator.
var s = "Hello, " + "World!"String Access by Index
You can access individual characters in a string using the index operator [].
var s = "Hello, World!"
var c = s[0] // c = 'H'String Length
The length of a string can be obtained using the len in-built function.
var s = "Hello, World!"
var l = len(s) // l = 13The len function returns the number of characters in the string.
