Skip to content

Commit

Permalink
Fix findOrDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Jun 30, 2016
1 parent f16499f commit 8bc71dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org.uqbar.project.wollok.lib/src/wollok.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ package lang {
* will be returned
* @returns the element that complies the condition or the default value
* Example:
* users.findDefault({ user => user.name() == "Cosme Fulanito" }, homer)
* users.findOrDefault({ user => user.name() == "Cosme Fulanito" }, homer)
*/
method findOrDefault(predicate, value) = self.findOrElse(predicate, { value })

Expand Down

0 comments on commit 8bc71dc

Please sign in to comment.