- Published on
What does 'iterable' mean?
- Authors
- Name
- hwahyeon
An 'iterable' refers to an object that can be iterated over, meaning an object whose items can be traversed one by one using loop structures like a for
loop.
- In Python, collections such as
list
,tuple
,str
, anddict
are typical examples of iterable objects. - In JavaScript,
Array
,Set
,Map
, andString
are considered iterables. - In Common Lisp,
list
,vector
, andhash-table
are examples of iterable objects. - In R, objects like
vector
,list
,data.frame
, andmatrix
can be iterated over.