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 3b70e35 commit 684d1a0Copy full SHA for 684d1a0
doc/Type/Range.pod6
@@ -69,6 +69,15 @@ It is possible to shift or scale the interval of a range:
69
say (1..10) - 1; # OUTPUT: «0..9»
70
say (1..10) * 2; # OUTPUT: «2..20»
71
say (1..10) / 2; # OUTPUT: «0.5..5.0»
72
+
73
+=head2 Matching against Ranges
74
75
+Use L<set operators|/language/setbagmix> to match against Ranges. Please note
76
+that set operators may cast to L<Set|/type/Set> and can create heavy memory load.
77
78
+ say 3 ∈ [1..12]; # OUTPUT: «True»
79
+ say [2..3] ⊆ [1..12]; # OUTPUT: «True»
80
+ say (5,6,7) ⊆ [1..12]; # OUTPUT: «True»
81
82
=head1 Methods
83
0 commit comments