5
W julia, Char i String nie są porównywalne.Jak przekonwertować Char do String w Julia?
julia> 'a' == "a"
false
Jak przekonwertować wartość Char na wartość typu String?
Próbowałem następujące funkcje, ale żaden z nich nie działa.
julia> convert(String, 'a')
ERROR: MethodError: Cannot `convert` an object of type Char to an object of type String
julia> String('a')
ERROR: MethodError: Cannot `convert` an object of type Char to an object of type String
julia> parse(String, 'a')
ERROR: MethodError: no method matching parse(::Type{String}, ::Char)