以下の記載がある。 > When counting the elements in a data structure, Elixir also abides by a simple rule: the function is named size if the operation is in constant time (i.e. the value is pre-calculated) or length if the operation is linear (i.e. calculating the length gets slower as the input grows). As a mnemonic, both “length” and “linear” start with “l”. - あらかじめ計算されたサイズを返却する関数は `size` - 呼び出されたら線形にサイズを計算する関数は `length` `size`は高速で問題ないが、`length`はデータ量が多いときは要注意。 ## 参考 - [Basic types \- The Elixir programming language](https://elixir-lang.org/getting-started/basic-types.html#lists-or-tuples)