deep lists, io data
io_libのman:
Type:chars() = [char() | chars()]
Function:
char_list(Term) -> bool()
Returns true if Term is a flat list of characters, otherwise it returns false.deep_char_list(Term) -> bool()
Returns true if Term is a, possibly deep, list of characters, otherwise it returns false.
fileのman:
Type:iodata() = iolist() | binary()
iolist() = [char() | binary() | iolist()]
deeplist()は、EDocの組み込み型
erlang:iolist_size/1 はバイトサイズを返す。実際には引数にiodata()を入れてもいい。これはなかなか便利。