$count: 0; @function foo() { $count: $count + 1 !global; $selector: ('.bar' 'baz'); @return $selector; } #{foo()} { count: $count; }