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
Map
You can apply a
function
to each element of a
structure
.
map [structure] with ([ID]):
[block]
end
Here, you can find an example with a
list
:
map [1,2,3,4] with (x):
x + 1
end
Output:
> [2,3,4,5]
Arbor Language Reference - Previous
Functional
Next
Filter
Last modified
1yr ago