1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using Funcky ;
1+ using Funcky ;
52using Funcky . Extensions ;
63using Funcky . Monads ;
74
@@ -30,7 +27,7 @@ private static ExtractElement SelectSplitStrategy(string identifier)
3027
3128 private static Option < SplitResult > SplitOnCasing ( string identifier , int startIndex )
3229 => startIndex >= identifier . Length
33- ? Option < SplitResult > . None ( )
30+ ? Option < SplitResult > . None
3431 : ExtractByCasing ( identifier , startIndex ) ;
3532
3633 private static Option < SplitResult > ExtractByCasing ( string identifier , int startIndex )
@@ -78,7 +75,7 @@ private static bool NextIsAbbreviation(string identifier, int startIndex)
7875
7976 private static Option < SplitResult > SplitOnSeparators ( string identifier , int startIndex )
8077 => startIndex > identifier . Length
81- ? Option < SplitResult > . None ( )
78+ ? Option < SplitResult > . None
8279 : ExtractBySeparator ( identifier , startIndex ) ;
8380
8481 private static SplitResult ExtractBySeparator ( string identifier , int startIndex )
@@ -105,7 +102,7 @@ private static string JoinStrings(this IEnumerable<string> strings, string separ
105102
106103 private static IEnumerable < string > SplitBy ( this string text , ExtractElement extractNext )
107104 => Sequence
108- . Generate ( new SplitResult ( 0 , string . Empty ) , previous => extractNext ( text , previous . NextStartIndex ) )
105+ . Successors ( extractNext ( text , 0 ) , previous => extractNext ( text , previous . NextStartIndex ) )
109106 . Select ( r => r . Result ) ;
110107
111108 private static int GetIndex ( ValueWithIndex < char > value )
0 commit comments