DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
stevemoon profile image
Steve Moon

Erlang

fltrim (Input) when length(Input) > 2 ->
    string:slice(Input, 1, length(Input) - 2).
Forem Open with the Forem app