Remove the last character from a string


#1

Hello

I saw that the function “chop” removes the last character of a given string. How to do the same for the first one ?

Thank’s

Michael.


#2

Perhaps:

julia> snip(s::String) = s[nextind(s,1):end];

julia> snip("αβγ")
"βγ"

#3

Sure, that’ll do. Thank’s !