Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. let all_same_color cs =
  2. let mutable d=true
  3. let (col:Color) = card_color (cs.Head:Card)
  4. for i in cs do
  5. let col=card_color i
  6. if not (col = col) then
  7. printfn "Black"
  8. d<-false
  9. else
  10. d<-d
  11. printfn "Val %b" d
  12. d
  13.  
  14. let (col:Color) = card_color (cs.Head:Card)
  15.  
  16. Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this programpoint to constrain the type of the object. This may allow the lookup to be resolved.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement