Branch type
Example
(collector/0 {"a": 1, "b": [2,3]} =~ AtPath(Branch(Any), Int -> collect(X))) # 6, all Ints (collector/0 {"a": 1, "b": [2,3]} =~ AtPath(Any, Int -> collect(X))) # 1, first Int
Methods
- =~(x:Any, b:Branch, mc:MatchContext)internal Source: stdlib.ngs:1198
Returns result of (=~)(x, b.pattern, mc) Returns
Bool
- init(b:Branch, pattern:Any) Source: stdlib.ngs:1192
Pattern for trying all possible branches. Always reports positive match.