Better
This commit is contained in:
@@ -96,6 +96,12 @@ module StringSplitEnumerator =
|
||||
|
||||
Int32.Parse e.Current
|
||||
|
||||
let consumeU32 (e : byref<StringSplitEnumerator>) : uint32 =
|
||||
if not (e.MoveNext ()) then
|
||||
failwith "expected an int, got nothing"
|
||||
|
||||
UInt32.Parse e.Current
|
||||
|
||||
let consumeU64 (e : byref<StringSplitEnumerator>) : uint64 =
|
||||
if not (e.MoveNext ()) then
|
||||
failwith "expected an int, got nothing"
|
||||
|
Reference in New Issue
Block a user