Skip to content

Commit e1afa33

Browse files
committed
Add WindowLeft example
1 parent c89e4e8 commit e1afa33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

m/window-left.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
Creates a left-aligned sliding window over the source sequence of a given size.
44

5-
```c# --destination-file ../code/Program.cs --region statements --project ../code/TryMoreLinq.csproj
6-
// TODO add example
5+
```c# --destination-file ../code/Program.cs --region expression --project ../code/TryMoreLinq.csproj
6+
from w in Enumerable.Range(1, 5)
7+
.WindowLeft(3)
8+
select $"AVG({string.Join(",", w)}) = {w.Average()}"
79
```
810

911
For more details, [see the documentation][doc].

0 commit comments

Comments
 (0)