MCPcopy Create free account
hub / github.com/Glyphack/enderpy / is_iterable

Function is_iterable

parser/src/parser/mod.rs:162–170  ·  view source on GitHub ↗
(expr: &Expression)

Source from the content-addressed store, hash-verified

160}
161
162pub fn is_iterable(expr: &Expression) -> bool {
163 matches!(
164 expr,
165 Expression::List { .. }
166 | Expression::Tuple { .. }
167 | Expression::Set { .. }
168 | Expression::Name { .. }
169 )
170}

Callers 1

parse_starred_itemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected