Substring/Top and tail: Difference between revisions

Content added Content deleted
(Add Racket entry)
Line 264: Line 264:
Readln;
Readln;
end.</lang>
end.</lang>

=={{header|Erlang}}==
<lang erlang>% Implemented by Arjun Sunel
string:left("Hello", length("Hello")-1,$.). % To strip the word from the right by 1

string:right("Hello", length("Hello")-1,$.). % To strip the word from the left by 1

string:left(string:right("Hello", length("Hello")-1,$.), length("Hello")-2,$.). %To strip the word from both sides by 1.
</lang>


=={{header|Euphoria}}==
=={{header|Euphoria}}==