Skip to content

Commit

Permalink
README: documents Intersperse method
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusschulz committed Sep 5, 2015
1 parent 733ff8f commit 27d025b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ fruits.HasExactly(2, fruit => fruit.StartsWith("a")) // true

Returns all elements of the collection separated by the given separator.

```csharp
int[] numbers = { 1, 2, 3, 4, 5 };
int[] separatedNumbers = numbers.Intersperse(0).ToArray();

// separatedNumbers = [1, 0, 2, 0, 3, 0, 4, 0, 5]
```


#### `IsEmpty`

Expand Down

0 comments on commit 27d025b

Please sign in to comment.