Fermat
Search
⌃
K
👉
GETTING STARTED
Intro to Fermat
First steps
Extra controls
✨
YOUR OWN SUPERPOWERS
Templates
Tools
AI models
🪄
Creating your own Tools
Creating your first tool
Thinking spatially
Friendly APIs
Bringing an AI partner
📖
Arbor Language Reference
Welcome to arbor
Statements
Operators & Comparators
Structures
Looping
Functional
Map
Filter
Reduce
Any
All
Replace
Standard Library
View
Blocks
Powered By
GitBook
Comment on page
Replace
You can replace a specified element with another element in a
structure
.
replace [element] with [element] in [structure]
Here, you can find an example with a
text
and a
list
:
replace "o" with "i" in "Arbor"
replace "a" with "b" in ["Arbor", "a"]
Output:
> Arbir
> ["Arbor", "b"]
Previous
All
Next - Arbor Language Reference
Standard Library
Last modified
1yr ago