Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 980f600

Browse files
dharknessleebyron
authored andcommitted
Fix flip() example under "Seq is lazy" (immutable-js#1679)
The Seq example using flip() has an incorrect result (all 1s).
1 parent e650133 commit 980f600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ lazySeq
576576
.flip()
577577
.map(key => key.toUpperCase())
578578
.flip();
579-
// Seq { A: 1, B: 1, C: 1 }
579+
// Seq { A: 1, B: 2, C: 3 }
580580
```
581581

582582
As well as expressing logic that would otherwise seem memory or time

0 commit comments

Comments
 (0)