> true || false;; val it : bool = true > true && false;; val it : bool = falseBut, these are syntax sugar. && and || are not only operators but also functions!
> (||) true false;; val it : bool = true > (&&) true false;; val it : bool = falseI have never known the fact until reading "Programming F# 3.0, 2nd Edition".
No comments:
Post a Comment