Interactive programming (repl): Difference between revisions

Line 1,380:
s = ":"
see r+s+s+c
</lang>
Output:
<pre>
Rosetta::Code
</pre>
 
=={{header|Rust}}==
<lang rust>
fn main() {
println!("{:?}", f("Rosetta", "Code", ":"));
}
 
fn f<'a>(s1: &'a str, s2: &'a str, sep :&'a str) -> String{
[s1,sep,sep,s2].iter().map(|x| *x).collect()
}
</lang>
Output:
Anonymous user