実際にどう使われますか?
下の例文を通して、それぞれの単語がどのような状況で使われるのか学んでみましょう!
incrementer
例文
The incrementer function adds 1 to the variable each time it is called. [incrementer: noun]
インクリメンタ関数は、呼び出されるたびに変数に 1 を加算します。[インクリメンタ:名詞]
例文
We need to increment the counter by 5 after each loop iteration. [increment: verb]
各ループの反復後にカウンターを5ずつインクリメントする必要があります。[インクリメント:動詞]
accumulator
例文
The accumulator variable stores the total sum of all the values in the array. [accumulator: noun]
アキュムレータ変数は、配列内のすべての値の合計を格納します。[アキュムレータ:名詞]
例文
We need to accumulate the total sales for the month to calculate our revenue. [accumulate: verb]
収益を計算するには、その月の総売上高を累積する必要があります。[蓄積:動詞]
追加で知っておくといいこと
どっちの方がよく使われますか?
Incrementerとaccumulatorはどちらもプログラミングで使用される専門用語であり、日常の言語で一般的に使用されない場合があります。
どっちの方がよりフォーマルですか?
incrementerとaccumulatorはどちらも、プログラミングや数学などの技術的なコンテキストで使用される正式な用語です。