Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -1,11 +1,10 @@
|
|||
text original = "Yellow world"
|
||||
text ref = original # copying the reference
|
||||
text copied = *original # copying the content
|
||||
original[0] = "H" # texts are indexable and mutable
|
||||
original[5] = ","
|
||||
^|in EMal strings are mutable|^
|
||||
text original ← "Yellow world"
|
||||
text ref ← original # copying the reference
|
||||
text copied ← *original # copying the content
|
||||
original[0] ← "H" # texts are indexable and mutable
|
||||
original[5] ← ","
|
||||
ref.append("!") # texts are coercible and growable
|
||||
copied += "?"
|
||||
^|
|
||||
| original == ref == "Hello, world!"
|
||||
| copied == "Yellow world?"
|
||||
|^
|
||||
writeLine(original æ ref and original æ "Hello, world!")
|
||||
writeLine(copied æ "Yellow world?")
|
||||
|
|
|
|||
1
Task/Copy-a-string/Ed/copy-a-string.ed
Normal file
1
Task/Copy-a-string/Ed/copy-a-string.ed
Normal file
|
|
@ -0,0 +1 @@
|
|||
,t
|
||||
Loading…
Add table
Add a link
Reference in a new issue