We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
>=
1 parent 3681bb3 commit 2f5e1d0Copy full SHA for 2f5e1d0
base/operators.jl
@@ -453,6 +453,14 @@ const ≤ = <=
453
454
Greater-than-or-equals comparison operator. Falls back to `y <= x`.
455
456
+# Implementation
457
+
458
+New types should prefer to implement [`<=`](@ref) instead of this function,
459
+and rely on the fallback definition `>=(x, y) = y <= x`.
460
461
+Furthermore, in many cases it is enough to implement just [`<`](@ref) and
462
+[`==`](@ref), relying on the fallback definitions of both `<=` and `>=`.
463
464
# Examples
465
```jldoctest
466
julia> 'a' >= 'b'
0 commit comments