Skip to main content

blockMatches

blockMatches(config: List<ConfigLine>, pattern: PatternBlocks<T>) : Bag<{data: T, blocks: MatchBlocks, diffCount: Integer}>

Deprecated Bag overload

As a transitionary measure for backwards compatibility, blockMatches also accepts a Bag<ConfigLine> as its first argument. Use orderBy() or order() to create an argument with type List<ConfigLine>. Eventually, the Bag overload will be removed and a type-checking error will be emitted instead.

See also

Functions