DontCollect 値

dontCollect 値は for ループで、値を収集しないことを知らせるために使われます。

詳細は、「For ループ」を参照してください。

dontCollect は、Undefined クラスの独立し区別されたインスタンスであるため、計算で使用した場合、undefined 値と同様に失敗します。

コンストラクタ

dontCollect

例:

    -- collect all spheres with radius less than 5
    little_spheres =
    for i in $* collect
    if classOf i == sphere and i.radius < 5 then i else dontCollect