Skip to content

Add "Spread operator" #7023

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


I did not find any informations about this operator during my Dart trip :

The spread operator allows to invoke an action on all items of an aggregate object. It is equivalent to calling the collect method like so:

(translated in Dart from Groovy exemple)
parent*.action; //equivalent to:
parent.forEach((child) { child?.action; });

or
List<Parent> parents;
[. . .]
List<String> parentNames = parents*.name

Groovy page discribing this operator:
http://groovy.codehaus.org/Operators

Thanks for your support,
Adrien

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-not-plannedClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions