Skip to content

Commit 26b28a8

Browse files
Don't use generators
1 parent 03f2fce commit 26b28a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if the given `sym` exists in the iterable returned by `independent_variables`.
1616
function is_indep_sym end
1717

1818
function is_indep_sym(store, sym)
19-
any(isequal(Symbol(sym)), Symbol(x) for x in independent_variables(store))
19+
any(isequal(Symbol(sym)), Symbol.(independent_variables(store)))
2020
end
2121

2222
"""
@@ -38,7 +38,7 @@ symbol in the iterable returned by `states` which matches the given `sym`. Retur
3838
function state_sym_to_index end
3939

4040
function state_sym_to_index(store, sym)
41-
findfirst(isequal(Symbol(sym)), Symbol(x) for x in states(store))
41+
findfirst(isequal(Symbol(sym)), Symbol.(states(store)))
4242
end
4343

4444
"""

0 commit comments

Comments
 (0)