Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例
for(id obj in [self getObjectsSorted]) { ... }
[self getObjectsSorted] は 1 回または反復ごとに呼び出されますか?
高速列挙により、カウンターとオブジェクトが不変の定数に変換されます。andstartとendof のループカウンターが一気に固定されます。それらを変更することはできません。
start
end
ブレークポイントで確認すると、一度だけ呼び出されているようです。