You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let inlineprivatetryParseElemAt i (g:struct(string *char)[])=
86
128
if i < Array.length g then tryParse (g.[i])
87
129
else None
88
130
89
131
typeTryParseArray=
90
-
static member inlineTryParseArray(_:'t,_:obj)=fun(g:(string*string)[])-> tryParseElemAt 0 g : 't option
132
+
static member inlineTryParseArray(_:'t,_:obj)=fun(g:struct(string*char)[])-> tryParseElemAt 0 g : 't option
91
133
92
-
static member inlineInvoke(g:(string *string) [])=
134
+
static member inlineInvoke(g:struct(string *char)[])=
93
135
let inlinecall_2(a:^a,b:^b)=((^aor^b):(static memberTryParseArray:_*_->_) b, a) g
94
136
let inlinecall(a:'a)= call_2 (a, Unchecked.defaultof<'r>): 'r option
95
137
call Unchecked.defaultof<TryParseArray>
96
138
97
-
static member inlineTryParseArray(t:'t,_:TryParseArray)=fun(g:(string*string)[])->
139
+
static member inlineTryParseArray(t:'t,_:TryParseArray)=fun(g:struct(string*char)[])->
98
140
let_f _ = Constraints.whenNestedTuple t :('t1*'t2*'t3*'t4*'t5*'t6*'t7*'tr)
99
141
let(t1:'t1 option)= tryParseElemAt 0 g
100
142
let(t2:'t2 option)= tryParseElemAt 1 g
@@ -108,31 +150,31 @@ module Parsing =
108
150
| Some t1, Some t2, Some t3, Some t4, Some t5, Some t6, Some t7, Some tr -> Some (Tuple<_,_,_,_,_,_,_,_>(t1, t2, t3, t4, t5, t6, t7, tr)|> retype : 't)
109
151
|_-> None
110
152
111
-
static member inlineTryParseArray(_:unit ,_:TryParseArray)=fun(_:(string*string)[])->()
112
-
static member inlineTryParseArray(_:Tuple<'t1>,_:TryParseArray)=fun(g:(string*string)[])-> Tuple<_><!> tryParseElemAt 0 g : Tuple<'t1> option
113
-
static member inlineTryParseArray(_:Id<'t1>,_:TryParseArray)=fun(g:(string*string)[])-> Id<_><!> tryParseElemAt 0 g
114
-
static member inlineTryParseArray(_:'t1*'t2 , _: TryParseArray)=fun(g:(string*string)[])-> tuple2 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g
115
-
static member inlineTryParseArray(_:'t1*'t2'*'t3 , _: TryParseArray)=fun(g:(string*string)[])-> tuple3 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g
116
-
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4 , _: TryParseArray)=fun(g:(string*string)[])-> tuple4 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g
117
-
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4*'t5 , _: TryParseArray)=fun(g:(string*string)[])-> tuple5 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g <*> tryParseElemAt 4 g
118
-
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4*'t5*'t6 , _: TryParseArray)=fun(g:(string*string)[])-> tuple6 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g <*> tryParseElemAt 4 g <*> tryParseElemAt 5 g
119
-
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4*'t5*'t6*'t7, _: TryParseArray)=fun(g:(string*string)[])-> tuple7 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g <*> tryParseElemAt 4 g <*> tryParseElemAt 5 g <*> tryParseElemAt 6 g
153
+
static member inlineTryParseArray(_:unit ,_:TryParseArray)=fun(_:struct(string*char)[])->()
154
+
static member inlineTryParseArray(_:Tuple<'t1>,_:TryParseArray)=fun(g:struct(string*char)[])-> Tuple<_><!> tryParseElemAt 0 g : Tuple<'t1> option
155
+
static member inlineTryParseArray(_:Id<'t1>,_:TryParseArray)=fun(g:struct(string*char)[])-> Id<_><!> tryParseElemAt 0 g
156
+
static member inlineTryParseArray(_:'t1*'t2 , _: TryParseArray)=fun(g:struct(string*char)[])-> tuple2 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g
157
+
static member inlineTryParseArray(_:'t1*'t2'*'t3 , _: TryParseArray)=fun(g:struct(string*char)[])-> tuple3 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g
158
+
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4 , _: TryParseArray)=fun(g:struct(string*char)[])-> tuple4 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g
159
+
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4*'t5 , _: TryParseArray)=fun(g:struct(string*char)[])-> tuple5 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g <*> tryParseElemAt 4 g
160
+
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4*'t5*'t6 , _: TryParseArray)=fun(g:struct(string*char)[])-> tuple6 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g <*> tryParseElemAt 4 g <*> tryParseElemAt 5 g
161
+
static member inlineTryParseArray(_:'t1*'t2'*'t3*'t4*'t5*'t6*'t7, _: TryParseArray)=fun(g:struct(string*char)[])-> tuple7 <!> tryParseElemAt 0 g <*> tryParseElemAt 1 g <*> tryParseElemAt 2 g <*> tryParseElemAt 3 g <*> tryParseElemAt 4 g <*> tryParseElemAt 5 g <*> tryParseElemAt 6 g
120
162
121
163
122
164
/// Gets a tuple with the result of parsing each element of a string array.
123
-
let inlineparseArray(source:string []):'``(T1 * T2 * ... * Tn)`` = ParseArray.Invoke (Array.map (fun x ->(x,"")) source)
165
+
let inlineparseArray(source:string []):'``(T1 * T2 * ... * Tn)`` = ParseArray.Invoke (Array.map (fun x ->(x,'\000')) source)
124
166
125
167
/// Gets a tuple with the result of parsing each element of a formatted text.
0 commit comments