julialangHow to concatenate strings in JuliaLang?
Strings in JuliaLang can be concatenated using the string()
function or the *
operator.
Example code
julia> string("Hello", " ", "World")
"Hello World"
julia> "Hello" * " " * "World"
"Hello World"
The string()
function takes any number of arguments and concatenates them into a single string. The *
operator takes two strings and concatenates them into a single string.
Code explanation
string()
function: takes any number of arguments and concatenates them into a single string*
operator: takes two strings and concatenates them into a single string
Helpful links
More of Julialang
- How to test code in JuliaLang?
- How to use tuples in JuliaLang?
- How to use try catch in JuliaLang?
- How to append to an array in JuliaLang?
- How to use the JuliaLang package manager?
- How to round numbers in JuliaLang?
- How to measure execution time in JuliaLang?
- How to use assert in JuliaLang?
- How to use Pluto in JuliaLang?
- How to get JuliaLang version?
See more codes...