Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,9 +0,0 @@
|
|||
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
|
||||
with Ada.Text_IO.Unbounded_Io; use Ada.Text_IO.Unbounded_IO;
|
||||
|
||||
procedure String_Append is
|
||||
Str : Unbounded_String := To_Unbounded_String("Hello");
|
||||
begin
|
||||
Append(Str, ", world!");
|
||||
Put_Line(Str);
|
||||
end String_Append;
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
print join ["Hello" "World"]
|
||||
|
||||
a: new "Hello"
|
||||
a: "Hello"
|
||||
'a ++ "World"
|
||||
print a
|
||||
|
||||
b: new "Hello"
|
||||
b: "Hello"
|
||||
append 'b "World"
|
||||
print b
|
||||
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
identification division.
|
||||
program-id. string-append.
|
||||
|
||||
data division.
|
||||
working-storage section.
|
||||
01 some-string.
|
||||
05 elements pic x occurs 0 to 80 times depending on limiter.
|
||||
01 limiter usage index value 7.
|
||||
01 current usage index.
|
||||
|
||||
procedure division.
|
||||
append-main.
|
||||
|
||||
move "Hello, " to some-string
|
||||
|
||||
*> extend the limit and move using reference modification
|
||||
set current to length of some-string
|
||||
set limiter up by 5
|
||||
move "world" to some-string(current + 1:)
|
||||
display some-string
|
||||
|
||||
goback.
|
||||
end program string-append.
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import extensions'text;
|
||||
|
||||
public program()
|
||||
public Program()
|
||||
{
|
||||
var s := StringWriter.load("Hello");
|
||||
s.append(" World");
|
||||
|
||||
console.writeLine(s).readChar()
|
||||
Console.writeLine(s).readChar()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
(defvar str "foo")
|
||||
(setq str (concat str "bar"))
|
||||
str ;=> "foobar"
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
(require 'cl-lib)
|
||||
|
||||
(defvar str "foo")
|
||||
(cl-callf concat str "bar")
|
||||
str ;=> "foobar"
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
(let ((buf (get-buffer-create "*foo*")))
|
||||
(with-current-buffer buf
|
||||
(insert "foo"))
|
||||
(with-current-buffer buf
|
||||
(goto-char (point-max))
|
||||
(insert "bar")
|
||||
(buffer-string)))
|
||||
;; => "foobar"
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
sequence string = "String"
|
||||
|
||||
printf(1,"%s\n",{string})
|
||||
|
||||
string &= " is now longer\n"
|
||||
|
||||
printf(1,"%s",{string})
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
$str = "Hello, "
|
||||
$str += "World!"
|
||||
$str
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
s = "Rosetta"
|
||||
s = s & " Code"
|
||||
WScript.StdOut.Write s
|
||||
Loading…
Add table
Add a link
Reference in a new issue