tpl/collections: Add collections.Complement

Fixes #5400
This commit is contained in:
Bjørn Erik Pedersen
2018-11-05 18:50:11 +01:00
parent 47506d1644
commit 42d8dfc8c8
4 changed files with 181 additions and 0 deletions

View File

@@ -39,6 +39,13 @@ func init() {
[][2]string{},
)
ns.AddMethodMapping(ctx.Complement,
[]string{"complement"},
[][2]string{
{`{{ slice "a" "b" "c" "d" "e" "f" | complement (slice "b" "c") (slice "d" "e") }}`, `[a f]`},
},
)
ns.AddMethodMapping(ctx.Delimit,
[]string{"delimit"},
[][2]string{