Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #13 from idkjs/patch-1

Syntax Error on first example

authored by

Phil Plückthun and committed by
GitHub
6be9f26a 6ab3c721

+3 -3
+3 -3
README.md
··· 65 65 let example = [1, 2, 3, 4, 5, 6]; 66 66 67 67 Wonka.fromList(example) 68 - |> Wonka.filter(x => x mod 2 === 0) 69 - |> Wonka.map(x => x * 2) 70 - |> Wonka.forEach(x => print_endline(string_of_int(x))); 68 + |> Wonka.filter((.x) => x mod 2 === 0) 69 + |> Wonka.map((.x )=> x * 2) 70 + |> Wonka.forEach((.x) => print_endline(string_of_int(x))); 71 71 72 72 /* prints: 4, 8, 12 */ 73 73 ```