We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1815a8 commit 26e2938Copy full SHA for 26e2938
src/FSharpx.Extras/Strings.fs
@@ -137,11 +137,9 @@ module Strings =
137
| ValuePatterns.Lower _ when not takeUpper -> consume from takeUpper (i + 1)
138
| ValuePatterns.Upper _ when takeUpper -> consume from takeUpper (i + 1)
139
| _ ->
140
- let r1 = struct(from, i)
141
- let r2 = restart i
142
seq {
143
- yield r1
144
- yield! r2 }
+ yield struct(from, i)
+ yield! restart i }
145
146
// Split string into segments and turn them to PascalCase
147
seq { for i1, i2 in restart 0 do
0 commit comments