Jump to content

Substring/Top and tail: Difference between revisions

(move the julia section so as to restore alphabetic order.)
Line 837:
 
remove_last(L, LR) :-
reverseappend(LLR, [_], | L1]L),.</lang>
reverse(L1, LR).</lang>
Output :
<pre> ?- remove_first_last_chars.
Line 847 ⟶ 846:
true.
</pre>
 
=={{header|PureBasic}}==
<lang PureBasic>If OpenConsole()
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.