nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5982ed
)
lib/bufferized_ropes: Force insert_at for + operation
author
Lucas Bajolet
<r4pass@hotmail.com>
Tue, 29 Jul 2014 18:24:12 +0000
(14:24 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Tue, 29 Jul 2014 18:24:12 +0000
(14:24 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/bufferized_ropes.nit
patch
|
blob
|
history
diff --git
a/lib/bufferized_ropes.nit
b/lib/bufferized_ropes.nit
index
a47bc0a
..
18cfa4c
100644
(file)
--- a/
lib/bufferized_ropes.nit
+++ b/
lib/bufferized_ropes.nit
@@
-105,6
+105,8
@@
redef class RopeString
end
end
+ redef fun +(o) do return insert_at(o.to_s, length)
+
# Inserts a String `str` at position `pos`
redef fun insert_at(str, pos)
do