목록이 모두 ASCII에서 인쇄 UTF-8 코드 포인트는이 charlist으로 터미널에 출력됩니다 설정 나타낼 수 정수로 구성합니다.
iex> [104,101,108,108,111]
'hello'
그러나 그것은 아주 많이 여전히 목록입니다
iex> 'hello' ++ [0]
[104, 101, 108, 108, 111, 0]
당신에게 : 그것은 비 인쇄 코드 포인트가 포함 된 경우
iex> 'hello' ++ ' there'
'hello there'
, 그것은 표준 목록으로 출력됩니다 어떤 문자 코드 포인트가 ?
연산자를 사용하여 볼 수 있습니다.
우리는 IEX에 i
도우미를 사용하는 용어에 대한 정보를 얻을 수 있습니다 :
iex> i 'hello'
Term
'hello'
Data type
List
Description
This is a list of integers that is printed as a sequence of characters
delimited by single quotes because all the integers in it represent valid
ASCII characters. Conventionally, such lists of integers are referred to
as "charlists" (more precisely, a charlist is a list of Unicode codepoints,
and ASCII is a subset of Unicode).
Raw representation
[104, 101, 108, 108, 111]
Reference modules
List
왜 elixer이 일을합니까? 얼랭.
[숯 목록으로 해석되는 엘릭서 목록] 중복 가능성 있음 (http://stackoverflow.com/questions/30037914/elixir-lists-interpreted-as-char-lists) – Dogbert