mirror of
https://github.com/boostorg/hana.git
synced 2026-02-23 15:52:11 +00:00
Use code instead of Latex in Comparable laws.
This commit is contained in:
@@ -27,11 +27,11 @@ namespace boost { namespace hana {
|
||||
## Laws
|
||||
`equal` must define an equivalence relation. In other words, for all
|
||||
`a`, `b`, `c` of comparable data types,
|
||||
@f{align*}{
|
||||
a = a && \text{Reflexivity} \\
|
||||
a = b \Rightarrow b = a && \text{Symmetry} \\
|
||||
a = b \wedge b = c \Rightarrow a = c && \text{Transitivity}
|
||||
@f}
|
||||
@code
|
||||
a == a // Reflexivity
|
||||
if a == b then b == a // Symmetry
|
||||
if a == b && b == c then a == c // Transitivity
|
||||
@endcode
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user