tpl/collections: Add collections.SymDiff

Fixes #5410
This commit is contained in:
Bjørn Erik Pedersen
2018-11-06 13:04:11 +01:00
parent b8b8436fcc
commit 488776b649
5 changed files with 204 additions and 18 deletions

View File

@@ -46,6 +46,13 @@ func init() {
},
)
ns.AddMethodMapping(ctx.SymDiff,
[]string{"symdiff"},
[][2]string{
{`{{ slice 1 2 3 | symdiff (slice 3 4) }}`, `[1 2 4]`},
},
)
ns.AddMethodMapping(ctx.Delimit,
[]string{"delimit"},
[][2]string{