Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,25 @@
;; String creation and destruction
str: make string! 5
str: none
;; String assignment
str: "Hello"
;; String comparison
str == "Hello" ;; case sensitive
str = "hello" ;; case insensitive
;; String cloning and copying
tmp: copy str
;; Check if a string is empty
empty? tmp
clear tmp
empty? tmp
;; Append a byte to a string
append tmp "x" ;== "x"
append/dup tmp "y" 2 ;== "xyy"
;; Extract a substring from a string
copy/part next tmp 2 ;== "yy"
;; Replace every occurrence of a byte (or a string) in a string with another string
replace/all str "l" "L"
;; Join strings
join str tmp
rejoin [str space tmp]
ajoin [str space tmp]