Skip to main content

rl_lang/interpreter/stdlib/string/
replace.rs

1use crate::interpreter::evaluator::Evaluator;
2
3pub fn std_replace(_: &mut Evaluator, string: String, from: String, to: String) -> String {
4    string.replace(&from, &to)
5}