mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
403 B
403 B
title | layout | version |
---|---|---|
all? | command | 0.59.1 |
Test if every element of the input matches a predicate.
Signature
> all? (predicate)
Parameters
predicate
: the predicate that must match
Examples
Find if services are running
> echo [[status]; [UP] [UP]] | all? status == UP
Check that all values are even
> echo [2 4 6 8] | all? ($it mod 2) == 0