We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c663926 commit 403dcb4Copy full SHA for 403dcb4
src/combinations.jl
@@ -10,7 +10,7 @@ struct Combinations
10
t::Int
11
end
12
13
-function Base.iterate(c::Combinations, s = [min(c.t - 1, i) for i in 1:c.t])
+@inline function Base.iterate(c::Combinations, s = [min(c.t - 1, i) for i in 1:c.t])
14
if c.t == 0 # special case to generate 1 result for t==0
15
isempty(s) && return (s, [1])
16
return
0 commit comments