Data update

This commit is contained in:
Ingy döt Net 2024-07-13 15:19:22 -07:00
parent 29a5eea0d4
commit 5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions

View file

@ -0,0 +1,14 @@
#include <gadget/gadget.h>
LIB_GADGET_START
Main
String v="Mensaje lanzado al mar", w=Space(100);
Stack{
Store ( w, Pad_c( Multi_cat(w, Upper( Str_tran_all(v,"lanzado","tirado",1)),\
" adentro de una botella", NULL ), '-', 70 ));
}
puts(w);
Free secure v, w;
End

View file

@ -0,0 +1,31 @@
module StringAppend {
void run() {
String start = "hello";
String finish = " world";
// approach #1: add strings together
String approach1 = start + finish;
// approach #2: StringBuffer
String approach2 = new StringBuffer()
.append(start)
.append(finish)
.toString();
// approach #3: string template
String approach3 = $"{start}{finish}";
@Inject Console console;
console.print($|
|Appending strings:
|
| {start=}
| {finish=}
|
| {approach1=}
| {approach2=}
| {approach3=}
|
);
}
}

View file

@ -0,0 +1,4 @@
##
var s := 'Pascal';
s := s + 'ABC' + '.NET';
Print(s);

View file

@ -0,0 +1,3 @@
A ← "Hello "
B ← ⊂ A "world"
B