Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions _tour/multiple-parameter-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ Methods may have multiple parameter lists.

### Example

Here is an example, as defined on the `TraversableOnce` trait in Scala's collections API:
Here is an example, as defined on the `Iterable` trait in Scala's collections API:

```
def foldLeft[B](z: B)(op: (B, A) => B): B
trait Iterable[A] {
...
def foldLeft[B](z: B)(op: (B, A) => B): B
...
}
```

`foldLeft` applies a two-parameter function `op` to an initial value `z` and all elements of this collection, going left to right. Shown below is an example of its usage.
Expand Down