Skip to content

Comment on API/CollectionClass.md (20-R9) #455

@jeremy-french-4D

Description

@jeremy-french-4D

Issue: [Function .flatMap()](https://developer.4d.com/docs/20-R9/API/CollectionClass#flatmap)

Two lines in Example 1 have syntax errors.

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions