Methods
Pred
ΒΆ
Pred(r:
RegExp
)
Convert regular expression to a predicate.
Source:
stdlib.ngs:3866
Returns
A function that checks whether the only argument matches r
Example
%[w1 w2].filter(/1/) # %[w1]