Methods
all
ΒΆ
all(h:
Hash
, predicate:
Any
)
Check whether all key-value pairs in Hash satisfy the given predicate
Source:
stdlib.ngs:1708
h
Hash to check
predicate
Test function to be called with one key and one value at a time
Returns
Bool
Example
{"x": 1, "y": 2}.all(F(k, v) v is Int) # true