f# - How to define -1 as a uint64 in a match clause? -
Let's match myuint64 = 10uL myuint64. -1 -> () | _ -> ()
How can I define given -1 as a uint64 value?
If F # will convert it to you then then 1 UL will work. If not, you can specify it as 0xFFFFFFFFFFFFFFFFUL and can add a comment to remember that it is -1.
Currently F # equipment is not installed so I can not verify it.
Comments
Post a Comment