Skip to content

Commit

Permalink
define smartmatch between two ranges
Browse files Browse the repository at this point in the history
masak++ is correct that this is difficult to write any other way.
  • Loading branch information
TimToady committed Apr 5, 2012
1 parent 1eb9da4 commit f0f29e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S03-operators.pod
Expand Up @@ -3665,6 +3665,7 @@ as a default because the more specific types listed above it didn't match.

Num Range in numeric range X.min <= $_ <= X.max (mod ^'s)
Str Range in string range X.min le $_ le X.max (mod ^'s)
Range Range subset range .bounds.all ~~ X (mod ^'s)
Any Range in generic range [!after] X.min,$_,X.max (etc.)

Any Type type membership $_.does(X)
Expand Down

0 comments on commit f0f29e7

Please sign in to comment.