atomic vectorの説明
Opened this issue · 0 comments
eitsupi commented
Line 11 in 2807fa2
↑の原子ベクトルの説明について、「長さ1のベクトルが原子ベクトル」と読めると思うのですが、実際にはそうではなくlistではない「内部のタイプが一つ(atomic)であるベクトル」が原子ベクトルだと認識しています。
例えば以下のような説明があります。
https://adv-r.hadley.nz/vectors-chap.html
Vectors come in two flavours: atomic vectors and lists. They differ in terms of their elements’ types: for atomic vectors, all elements must have the same type; for lists, elements can have different types. While not a vector, NULL is closely related to vectors and often serves the role of a generic zero length vector. This diagram, which we’ll be expanding on throughout this chapter, illustrates the basic relationships: