-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Issue: [Function .flatMap()](https://developer.4d.com/docs/20-R9/API/CollectionClass#flatmap)
Two lines in Example 1 have syntax errors.

Each line's error is the absence of a closing right parenthesis.
The following line uses the map
function as follows.
$result:=$col.map(Formula(New collection($1.value*2))
It should have an additional third parenthesis added at its end, as follows. Note the three parentheses at its end.
$result:=$col.map(Formula(New collection($1.value*2)))
And this line uses the flatMap
function as follows.
$result:=$col.flatMap(Formula(New collection($1.value*2))
It, too, should have an additional third parenthesis added at its end, as follows. Note the three parentheses at its end.
$result:=$col.flatMap(Formula(New collection($1.value*2)))
Metadata
Metadata
Assignees
Labels
No labels