src/Zicht/Itertools/twig/Extension.php
public function getFilters()
    {
        return [
            // filter names are case-sensitive
            new \Twig_SimpleFilter('all', '\Zicht\Itertools\all'),
            new \Twig_SimpleFilter('any', '\Zicht\Itertools\any'),
            new \Twig_SimpleFilter('chain', '\Zicht\Itertools\chain'),
            new \Twig_SimpleFilter('collapse', '\Zicht\Itertools\collapse'),
            new \Twig_SimpleFilter('filter', [$this, 'filter']),
            new \Twig_SimpleFilter('first', '\Zicht\Itertools\first'),
            new \Twig_SimpleFilter('group_by', [$this, 'groupBy']),
            new \Twig_SimpleFilter('last', '\Zicht\Itertools\last'),
            new \Twig_SimpleFilter('map', [$this, 'map']),
            new \Twig_SimpleFilter('map_by', [$this, 'mapBy']),
            new \Twig_SimpleFilter('reduce', '\Zicht\Itertools\reduce'),
            new \Twig_SimpleFilter('reversed', '\Zicht\Itertools\reversed'),
            new \Twig_SimpleFilter('sorted', [$this, 'sorted']),
            new \Twig_SimpleFilter('unique', [$this, 'unique']),
            new \Twig_SimpleFilter('zip', '\Zicht\Itertools\zip'),

            // deprecated filters
            new \Twig_SimpleFilter('filterby', [$this, 'deprecatedFilterBy'], ['deprecated' => true, 'alternative' => 'filter']),
            new \Twig_SimpleFilter('groupBy', [$this, 'deprecatedGroupBy'], ['deprecated' => true, 'alternative' => 'group_by']),
            new \Twig_SimpleFilter('groupby', [$this, 'deprecatedGroupBy'], ['deprecated' => true, 'alternative' => 'group_by']),
            new \Twig_SimpleFilter('mapBy', [$this, 'deprecatedMapBy'], ['deprecated' => true, 'alternative' => 'map_by']),
            new \Twig_SimpleFilter('mapby', [$this, 'deprecatedMapBy'], ['deprecated' => true, 'alternative' => 'map_by']),
            new \Twig_SimpleFilter('sum', [$this, 'deprecatedSum'], ['deprecated' => true, 'alternative' => 'reduce']),
            new \Twig_SimpleFilter('uniqueby', [$this, 'deprecatedUniqueBy'], ['deprecated' => true, 'alternative' => 'unique']),
        ];
    }
public function getFilters()
    {
        return [
            // filter names are case-sensitive
            new \Twig_SimpleFilter('all', '\Zicht\Itertools\all'),
            new \Twig_SimpleFilter('any', '\Zicht\Itertools\any'),
            new \Twig_SimpleFilter('chain', '\Zicht\Itertools\chain'),
            new \Twig_SimpleFilter('collapse', '\Zicht\Itertools\collapse'),
            new \Twig_SimpleFilter('filter', [$this, 'filter']),
            new \Twig_SimpleFilter('first', '\Zicht\Itertools\first'),
            new \Twig_SimpleFilter('group_by', [$this, 'groupBy']),
            new \Twig_SimpleFilter('last', '\Zicht\Itertools\last'),
            new \Twig_SimpleFilter('map', [$this, 'map']),
            new \Twig_SimpleFilter('map_by', [$this, 'mapBy']),
            new \Twig_SimpleFilter('reduce', '\Zicht\Itertools\reduce'),
            new \Twig_SimpleFilter('reversed', '\Zicht\Itertools\reversed'),
            new \Twig_SimpleFilter('sorted', [$this, 'sorted']),
            new \Twig_SimpleFilter('unique', [$this, 'unique']),
            new \Twig_SimpleFilter('zip', '\Zicht\Itertools\zip'),

            // deprecated filters
            new \Twig_SimpleFilter('filterby', [$this, 'deprecatedFilterBy'], ['deprecated' => true, 'alternative' => 'filter']),
            new \Twig_SimpleFilter('groupBy', [$this, 'deprecatedGroupBy'], ['deprecated' => true, 'alternative' => 'group_by']),
            new \Twig_SimpleFilter('groupby', [$this, 'deprecatedGroupBy'], ['deprecated' => true, 'alternative' => 'group_by']),
            new \Twig_SimpleFilter('mapBy', [$this, 'deprecatedMapBy'], ['deprecated' => true, 'alternative' => 'map_by']),
            new \Twig_SimpleFilter('mapby', [$this, 'deprecatedMapBy'], ['deprecated' => true, 'alternative' => 'map_by']),
            new \Twig_SimpleFilter('sum', [$this, 'deprecatedSum'], ['deprecated' => true, 'alternative' => 'reduce']),
            new \Twig_SimpleFilter('uniqueby', [$this, 'deprecatedUniqueBy'], ['deprecated' => true, 'alternative' => 'unique']),
        ];
    }
{@inheritdoc}