Strings
greeting : String = (concat "Hello, " "World")
(println greeting)
(println (stringLength greeting))
(println (split ", " greeting))
(println (join "-" (chars "abc")))
(println (lines "first\nsecond\r\nthird"))
(println (add (parseNumber " 2.5 ") 1))
(println (show "quoted\tand escaped"))
(println "unicode: \u{3bb}")
Output
Hello, World
12
["Hello", "World"]
a-b-c
["first", "second", "third"]
3.5
"quoted\tand escaped"
unicode: λ
Run it yourself from the repository root: lbd run tests/golden/programs/strings.lbd