@@ -358,6 +358,7 @@ false
358
358
```
359
359
"""
360
360
< (x, y) = isless (x, y)
361
+ ≮ (x, y) = ! < (x, y)
361
362
362
363
"""
363
364
>(x, y)
384
385
```
385
386
"""
386
387
> (x, y) = y < x
388
+ ≯ (x, y) = ! > (x, y)
387
389
388
390
"""
389
391
<=(x, y)
@@ -409,7 +411,8 @@ false
409
411
"""
410
412
<= (x, y) = (x < y) | (x == y)
411
413
const ≤ = <=
412
- const ⩽ = <=
414
+ const ⩽ = ≤
415
+ ≰ (x, y) = ! ≤ (x, y)
413
416
414
417
"""
415
418
>=(x, y)
435
438
"""
436
439
>= (x, y) = (y <= x)
437
440
const ≥ = >=
438
- const ⩾ = >=
441
+ const ⩾ = ≥
442
+ ≱ (x, y) = ! ≥ (x, y)
439
443
440
444
# this definition allows Number types to implement < instead of isless,
441
445
# which is more idiomatic:
@@ -1222,6 +1226,19 @@ used to implement specialized methods.
1222
1226
"""
1223
1227
>= (x) = Fix2 (>= , x)
1224
1228
1229
+ """
1230
+ ≱(x)
1231
+
1232
+ Create a function that compares its argument to `x` using [`≱`](@ref), i.e.
1233
+ a function equivalent to `y -> y ≱ x`.
1234
+ The returned function is of type `Base.Fix2{typeof(≱)}`, which can be
1235
+ used to implement specialized methods.
1236
+
1237
+ !!! compat "Julia 1.2"
1238
+ This functionality requires at least Julia 1.2.
1239
+ """
1240
+ ≱ (x) = Fix2 (≱ , x)
1241
+
1225
1242
"""
1226
1243
<=(x)
1227
1244
@@ -1235,6 +1252,19 @@ used to implement specialized methods.
1235
1252
"""
1236
1253
<= (x) = Fix2 (<= , x)
1237
1254
1255
+ """
1256
+ ≰(x)
1257
+
1258
+ Create a function that compares its argument to `x` using [`≰`](@ref), i.e.
1259
+ a function equivalent to `y -> y ≰ x`.
1260
+ The returned function is of type `Base.Fix2{typeof(≰)}`, which can be
1261
+ used to implement specialized methods.
1262
+
1263
+ !!! compat "Julia 1.2"
1264
+ This functionality requires at least Julia 1.2.
1265
+ """
1266
+ ≰ (x) = Fix2 (≰ , x)
1267
+
1238
1268
"""
1239
1269
>(x)
1240
1270
@@ -1248,6 +1278,19 @@ used to implement specialized methods.
1248
1278
"""
1249
1279
> (x) = Fix2 (> , x)
1250
1280
1281
+ """
1282
+ ≯(x)
1283
+
1284
+ Create a function that compares its argument to `x` using [`≯`](@ref), i.e.
1285
+ a function equivalent to `y -> y ≯ x`.
1286
+ The returned function is of type `Base.Fix2{typeof(≯)}`, which can be
1287
+ used to implement specialized methods.
1288
+
1289
+ !!! compat "Julia 1.2"
1290
+ This functionality requires at least Julia 1.2.
1291
+ """
1292
+ ≯ (x) = Fix2 (≯ , x)
1293
+
1251
1294
"""
1252
1295
<(x)
1253
1296
@@ -1261,6 +1304,19 @@ used to implement specialized methods.
1261
1304
"""
1262
1305
< (x) = Fix2 (< , x)
1263
1306
1307
+ """
1308
+ ≮(x)
1309
+
1310
+ Create a function that compares its argument to `x` using [`≮`](@ref), i.e.
1311
+ a function equivalent to `y -> y ≮ x`.
1312
+ The returned function is of type `Base.Fix2{typeof(≮)}`, which can be
1313
+ used to implement specialized methods.
1314
+
1315
+ !!! compat "Julia 1.2"
1316
+ This functionality requires at least Julia 1.2.
1317
+ """
1318
+ ≮ (x) = Fix2 (≮ , x)
1319
+
1264
1320
"""
1265
1321
splat(f)
1266
1322
0 commit comments