Published on

What does 'iterable' mean?

Authors
  • avatar
    Name
    hwahyeon
    Twitter

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, and dict are typical examples of iterable objects.
  • In JavaScript, Array, Set, Map, and String are considered iterables.
  • In Common Lisp, list, vector, and hash-table are examples of iterable objects.
  • In R, objects like vector, list, data.frame, and matrix can be iterated over.