iterate
/ˈɪtəreɪt/ (bre, ipa) · /ˈɪtəreɪt/ (ame, ipa) · /ˈi-tə-ˌrāt/ (ame, mw)
iterate — 動詞
- iteratepresent simple I / you / we / they
- iterateshe / she / it
- iteratedpast simple
- iterating-ing form
1. to carry out a set of instructions or steps many times, particularly in computin
反覆執行
於程式中重複執行步驟
to carry out a set of instructions or steps many times, particularly in computing, so that each round builds on the result of the one before it.
The script iterates over each file in the folder and checks the file size.
這段程式碼會逐一反覆讀取資料夾中的每個檔案,並檢查檔案大小。
iterate + over [data structure]
Chen wrote a function that iterates through the user database to find inactive accounts.
Chen 寫了一個函式,會反覆檢查使用者資料庫,找出不活躍的帳號。
iterate + through [collection]
The simulation iterates the calculation until the error falls below the set limit.
模擬程式會反覆執行計算,直到誤差低於設定的上限。
Rosa iterated the data-cleaning process four times before she was happy with the result.
Rosa 把資料清理程序反覆執行了四次,才對結果感到滿意。
Our program iterates over the sensor readings once every second.
我們的程式每秒會反覆讀取一次感測器的數據。
文法句型
iterate + over [data structure]
iterate + through [collection]
iterate + noun phrase + [number of times]
用法筆記
Common in computing contexts with prepositions like 'over' or 'through' to describe what data is being processed. Can be used transitively (iterate a process) or intransitively (iterate over records).
常見錯誤
2. to state or do a thing more than one time, typically to make sure people notice
重複;反覆說
再次說或做同一件事
to state or do a thing more than one time, typically to make sure people notice or understand it properly.
The coach iterated the team rules before every practice session.
每次練習前,教練都會重複提醒隊伍的規範。
iterate + noun phrase (formal register for repeated instruction)
Hassan iterated his request for a quieter room until the hotel staff finally moved him.
Hassan 不斷重申他想換一間安靜的房間,旅館人員最後終於幫他換了。
Ana iterated the safety announcement three times during the flight.
Ana 在飛行途中把安全須知重複說了三次。
The manager iterated the same feedback in each weekly meeting.
經理在每週會議中都會重複同樣的回饋意見。
Binta iterated her apology to the neighbours until they accepted it.
Binta 不斷向鄰居道歉,直到他們接受為止。
- stop
cease doing something rather than doing it again
文法句型
iterate + noun phrase
iterate + noun phrase + [adverbial of frequency]
用法筆記
More formal than simply saying 'repeat'. Often used when someone repeats something for emphasis or in a public or professional setting. Similar in tone to 'reiterate'.