s
at pos
.assert "helloworld".insert_at(" ", 5) == "hello world"
var b = new Buffer
b.append("Hello世界")
b = b.insert_at(" beautiful ", 5)
assert b == "Hello beautiful 世界"
# Insert `s` at `pos`.
#
# ~~~
# assert "helloworld".insert_at(" ", 5) == "hello world"
# var b = new Buffer
# b.append("Hello世界")
# b = b.insert_at(" beautiful ", 5)
# assert b == "Hello beautiful 世界"
# ~~~
fun insert_at(s: String, pos: Int): SELFTYPE is abstract
lib/core/text/abstract_text.nit:1284,2--1293,57