6.1.15:Counting the Number of Words, Lines or Items

ワード、ライン、アイテムの数を数える

The number function returns the number of chunks of a given type in a value. For example, to find out how many lines are in a variable, use an expression such as:

number
ファンクションは、指定された形式のチャンクの数を値として返します。例えば、変数内に行数がどれだけあるかを知るためには、次の様な表現式を使います:

the number of lines in myVariable

You can also nest chunk expressions to find the number of chunks in a single chunk of a larger chunk type:

また、より大きなチャンク形式にある単一のチャンクの数を知るために、入れ子になったチャンク表現式を用いることもできます。

the number of chars of item 10 of myVariable
変数myVariableの10こめのアイテムのキャラクタの数