Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing overload for Base.in #930

Open
jkharv opened this issue Jul 14, 2023 · 1 comment
Open

Missing overload for Base.in #930

jkharv opened this issue Jul 14, 2023 · 1 comment

Comments

@jkharv
Copy link

jkharv commented Jul 14, 2023

using Symbolics 

vs = @variables x y 

vs[1]  vs

This code produces the following error

ERROR: TypeError: non-boolean (Num) used in boolean context
Stacktrace:
 [1] in(x::Num, itr::Vector{Num})
   @ Base ./operators.jl:1286
 [2] top-level scope
   @ REPL[9]:1

The desired behaviour should be that this returns true if a Num is in a collection of Nums

Using the following versions:
Symbolics v5.3.1
Julia 1.9.0
Fedora Linux 38

@ChrisRackauckas
Copy link
Member

This seems to be a reasonable suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants