File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,15 @@ module ParserMonad =
181
181
let inline boundRepeat ( n : ^T ) ( p : ParserMonad < 'a >) : ParserMonad < 'a array > =
182
182
parseMidi {
183
183
let l = Array.zeroCreate ( int n) // can't use array expression inside a CE (at least as is)
184
- for i in LanguagePrimitives.GenericZero .. ( n - LanguagePrimitives.GenericOne) do
184
+ for ( i : 'T ) in LanguagePrimitives .GenericZero .. ( n - LanguagePrimitives .GenericOne ) do
185
185
let! r = p
186
- l.[ i] <- r
186
+ l.[ int i] <- r
187
187
return l
188
188
}
189
+
189
190
/// Apply the parser for /count/ times, derive the final answer
190
191
/// from the intermediate list with the supplied function.
191
- let inline gencount plen p constr = // (plen: ParserMonad<'T>) (p: ParserMonad<'a>) (constr: ^T -> 'a array -> 'answer) : ParserMonad<'answer> =
192
+ let inline gencount ( plen : ParserMonad < 'T >) ( p : ParserMonad < 'a >) ( constr : ^T -> 'a array -> 'answer ) : ParserMonad < 'answer > =
192
193
parseMidi {
193
194
let! l = plen
194
195
let! items = boundRepeat l p
You can’t perform that action at this time.
0 commit comments