julia
231ca24a - define specialized `[in|all|any](x, ::Tuple)` methods with better effects (#51002)

Commit
2 years ago
define specialized `[in|all|any](x, ::Tuple)` methods with better effects (#51002) So that it can be concrete-evaluated. There are certain code patterns like: ```julia if flag::Const(::Char) in ('S', 'T', 'U') # do something else # do something else end ``` and it would be beneficial if we can cut off a dead branch by folding the call to `in`. This commit adds similar improvements for `all` and `any` as well.
Author
Parents
Loading