Is there a programming language in which we can write something like:
a => b
to compute implication? (where a
and b
are booleans)
The closest I can find is in Scala:
a <= b
But it looks completely different from the actual meaning of "implication".
So the winner is Scala:
Thanks to that:
Edit I also found Dafny and probably most other mathematical languages: