Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fallout from change to return type of List.collect() eclipse-archived…
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Apr 14, 2017
1 parent 6db4198 commit f82b525
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/ceylon/collection/LinkedList.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,11 @@ shared serializable class LinkedList<Element>
}

shared actual
Result[] collect<Result>(
[Result+]|[] collect<Result>(
"The transformation applied to the elements."
Result collecting(Element element))
=> [for (element in this) collecting(element)];
=> [for (element in this) collecting(element)]
of [Result+]|[];

first => head?.element;

Expand Down

1 comment on commit f82b525

@gavinking
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.