length() is an inbuilt function in julia which is used to return the length of the specified string with desired starting and end position.
length(S::AbstractString, i::Integer, j::Integer)
- S::AbstractString: Specified string
- i::Integer: Inclusive starting position.
- i::Integer: Inclusive ending position.
Returns: It returns the length of the specified string with desired starting and end position.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.