Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -1,8 +1,8 @@
julia> "My String"[2:end] #without first character
julia> "My String"[2:end] # without first character
"y String"
julia> "My String"[1:end-1] #without last character
julia> "My String"[1:end-1] # without last character
"My Strin"
julia> chop("My String") #alternate remove last character
"My Strin"
julia> "My String"[2:end-1] # without first and last characters
"y Strin"

View file

@ -9,5 +9,4 @@ remove_first_last_chars :-
writef('Without first/last chars : %s\n', [L3]).
remove_last(L, LR) :-
reverse(L, [_ | L1]),
reverse(L1, LR).
append(LR, [_], L).