June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
7
Task/String-prepend/Falcon/string-prepend.falcon
Normal file
7
Task/String-prepend/Falcon/string-prepend.falcon
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* created by Aykayayciti Earl Lamont Montgomery
|
||||
April 9th, 2018 */
|
||||
|
||||
|
||||
s = "fun "
|
||||
s = s + "Falcon"
|
||||
> s
|
||||
|
|
@ -1,3 +1,21 @@
|
|||
my $str = 'bar';
|
||||
substr $str, 0, 0, 'Foo';
|
||||
print $str;
|
||||
use strict;
|
||||
use warnings;
|
||||
use feature ':all';
|
||||
|
||||
# explicit concatentation
|
||||
$_ = 'bar';
|
||||
$_ = 'Foo' . $_;
|
||||
say;
|
||||
|
||||
|
||||
# lvalue substr
|
||||
$_ = 'bar';
|
||||
substr $_, 0, 0, 'Foo';
|
||||
say;
|
||||
|
||||
|
||||
# interpolation as concatenation
|
||||
# (NOT safe if concatenate sigils)
|
||||
$_ = 'bar';
|
||||
$_ = "Foo$_";
|
||||
say;
|
||||
|
|
|
|||
4
Task/String-prepend/Red/string-prepend.red
Normal file
4
Task/String-prepend/Red/string-prepend.red
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Red []
|
||||
s: "world"
|
||||
insert s "hello "
|
||||
print s
|
||||
3
Task/String-prepend/Rust/string-prepend.rust
Normal file
3
Task/String-prepend/Rust/string-prepend.rust
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
let mut s = "World".to_string();
|
||||
s.insert_str(0, "Hello ");
|
||||
println!("{}", s);
|
||||
5
Task/String-prepend/Stata/string-prepend.stata
Normal file
5
Task/String-prepend/Stata/string-prepend.stata
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
sca s="Vita Brevis"
|
||||
sca s="Ars Longa "+s
|
||||
di s
|
||||
|
||||
Ars Longa Vita Brevis
|
||||
Loading…
Add table
Add a link
Reference in a new issue