Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Any(iterable).isa-any(type) method #4631

Closed
wants to merge 1 commit into from
Closed

Commits on Nov 9, 2021

  1. Add Any(iterable).isa-any(type) method

    This returns a boolean whether *any* values produced by the iterable match
    the given type. Intended to be used in e.g. constraints such as:
    
        sub foo(@A where .isa-any(Int))
    
    as an alternative to:
    
        sub foo(@A where .any ~~ Int)
    
    This is the logical counterpart of Any.isa-all.
    lizmat committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    1a930fd View commit details
    Browse the repository at this point in the history