BIT-VECTOR — 시스템 클래스(비트 벡터)

BIT-VECTOR — 시스템 클래스(비트 벡터)

0과 1의 나열, 즉 비트들로만 이루어진 벡터가 필요할 때가 있어요. 플래그 목록이나 비트 수준의 데이터를 다룰 때 유용하죠. 그게 bit-vector예요. 요소 타입이 bit인 벡터예요. 이 문서는 시스템 클래스(system class) 문서예요.

출처: CLHS System Class BIT-VECTOR

본문

클래스 우선순위 리스트 (Class Precedence List)

bit-vector
vector
array
sequence
t

설명 (Description)

비트 벡터(bit vector)는 요소 타입이 bit인 벡터예요.

bit-vector 타입은 vector 타입의 subtype인데, bit-vector(vector bit)를 뜻하기 때문이에요.

복합 타입 지정자 종류 (Compound Type Specifier Kind)

축약(Abbreviating).

복합 타입 지정자 문법 (Compound Type Specifier Syntax)

bit-vector [size]

복합 타입 지정자 인자 (Compound Type Specifier Arguments)

  • size — 음이 아닌 fixnum이거나 심볼 *이에요.

복합 타입 지정자 설명 (Compound Type Specifier Description)

이는 타입 (array bit (size))와 같은 타입을 나타내요. 즉 크기 size인 비트 벡터들의 집합이죠.

더 알아보기 (See Also)

  • Section 2.4.8.4 (Sharpsign Asterisk)
  • Section 22.1.3.6 (Printing Bit Vectors)
  • Section 15.1.2.2 (Required Kinds of Specialized Arrays)