Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
7
Task/String-concatenation/ABAP/string-concatenation.abap
Normal file
7
Task/String-concatenation/ABAP/string-concatenation.abap
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
DATA: s1 TYPE string,
|
||||
s2 TYPE string.
|
||||
|
||||
s1 = 'Hello'.
|
||||
CONCATENATE s1 ' literal' INTO s2 RESPECTING BLANKS.
|
||||
WRITE: / s1.
|
||||
WRITE: / s2.
|
||||
3
Task/String-concatenation/DCL/string-concatenation.dcl
Normal file
3
Task/String-concatenation/DCL/string-concatenation.dcl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ string1 = "hello"
|
||||
$ string2 = string1 + " world"
|
||||
$ show symbol string*
|
||||
11
Task/String-concatenation/Elena/string-concatenation.elena
Normal file
11
Task/String-concatenation/Elena/string-concatenation.elena
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#import system.
|
||||
#import extensions.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
#var s := "Hello".
|
||||
#var s2 := s + " literal".
|
||||
|
||||
console writeLine:s.
|
||||
console writeLine:s2.
|
||||
].
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(defun glue (str1 str2)
|
||||
(concat str1 str2) )
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(defun glue (str1 str2)
|
||||
(format "%s%s" str1 str2) )
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(setq str1 "Hello, ")
|
||||
(setq str2 "World!")
|
||||
(insert (glue str1 str2) )
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
// rust 0.13
|
||||
|
||||
fn main() {
|
||||
let s = "hello".to_string();
|
||||
let s = "hello".to_owned();
|
||||
println!("{}", s);
|
||||
|
||||
let s1 = s + " world";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
"HELLO"→Str0
|
||||
Str0+" WORLD!"→Str0
|
||||
Loading…
Add table
Add a link
Reference in a new issue