LoginSignup
0
0

More than 3 years have passed since last update.

Python初心者向け。Collectionというプログラミング言語の一般用語を知らないと混乱するかも。

Posted at

概要

Python初心者向け。Collectionというプログラミング言語の一般用語を知らないと混乱するかも。
自分がそれに該当したので、そのことを記事にする。

Collectionというプログラミング言語の一般用語

引用: https://en.wikipedia.org/wiki/Collection_(abstract_data_type)

In computer science, a collection or container is a grouping of some variable number of data items (possibly zero) that have some shared significance to the problem being solved and need to be operated upon together in some controlled fashion. Generally, the data items will be of the same type or, in languages supporting inheritance, derived from some common ancestor type. A collection is a concept applicable to abstract data types, and does not prescribe a specific implementation as a concrete data structure, though often there is a conventional choice (see Container for type theory discussion).

Examples of collections include lists, sets, multisets, trees and graphs.

この意味で、コレクションというのは、あまり、日本語には馴染んでないのでは。コンテナとかは、比較的見るが。

普通、Pythonでcollecitionというと。

python collection で検索すると、
どうしても、

などの、

collections --- コンテナデータ型

collectionsモジュールに、引き込まれる。

説明が、

このモジュールは、汎用の Python 組み込みコンテナ dict, list, set, および tuple に代わる、特殊なコンテナデータ型を実装しています。

何か、あたかも、
dict, list, set
あたりは、コレクションでないように読めるが。。。
このあたりは、プログラミング用語でいうところのコレクションの代表例である。

まとめ

特にありません。
単なる情報共有。自分が、少し、勘違いしていたので。
コメントなどあれば、お願いします。

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0