Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue