-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA 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).Dart 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 issueClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
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
rrousselGit, TylerK, rhalff, MauriPastorini, Albert221 and 1 more
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA 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).Dart 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 issueClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug