[][src]Function voca_rs::manipulate::insert

pub fn insert(subject: &str, to_insert: &str, position: usize) -> String

Inserts into subject a string to_insert at specified position.

Arguments

Example

use voca_rs::*;
manipulate::insert("ct", "a", 1);
// => "cat"
manipulate::insert("sunny", " day", 5);
// => "sunny day"
use voca_rs::Voca;
"ct"._insert("a", 1);
// => "cat"