Library reference

Convert text to lowercase

Give these short labels the same letter case. All four inputs use plain English letters and digits.

lowercase

Simple example

Change the case of two letters.

Start'AB'
Resultab
lesson.jl
function main()
    println(lowercase("AB"))
end

main()
Output
ab
Advertisements

Everyday examples

Make the bus label match the route board.

Start'BUS'
Resultbus
lesson.jl
function main()
    println(lowercase("BUS"))
end

main()
Output
bus

Give an art shelf the same lettering as the other shelves.

Start'ART'
Resultart
lesson.jl
function main()
    println(lowercase("ART"))
end

main()
Output
art

Normalize the letters in a ticket code and keep its digits.

Start'B12'
Resultb12
lesson.jl
function main()
    println(lowercase("B12"))
end

main()
Output
b12
Run the example
Terminal
julia lesson.jl
Official documentation