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
Filter
You can filter elements in a
structure
for which a given
function
returns true.
filter [structure] with ([ID]):
[block]
end
Here, you can find an example with a
list
:
filter [1,2,3,4] with (x):
x > 1
end
Output:
> [2,3,4]
Previous
Map
Next
Reduce
Last modified
1yr ago