What is the translation of " FOREACH " in English?

Noun
foreach
一个foreach

Examples of using Foreach in Chinese and their translations into English

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
我们将看的最后一个循环是foreach循环。
The last loop we will look at, is the foreach loop.
未赋值的值不会在forEach循环迭代。
Unassigned values are not iterated in a forEach loop.
Foreach循环也称为增强型for循环.
The foreach loop is also known as the enhanced for loop.
你如何获得foreach循环的当前迭代的索引?
How do you get the index of the current iteration of a foreach loop?
Foreach循环也称为for循环的增强版.
The foreach loop is also known as the enhanced for loop.
是否有理由让C在foreach中重用该变量?
Is there a reason for C 's reuse of the variable in a foreach?
所以,foreach循环也通常也被称为增强for循环。
The foreach loop is also known as the enhanced for loop.
这意味着不需要在foreach循环之前调用reset()。
This means that you do not need to call reset() before a foreach loop.
我们使用foreach关键字遍历数组并打印其内容。
We use the foreach keyword to traverse the array and print its contents.
此错误也是由为foreach迭代变量赋值而引起的。
This error is also caused by assigning a value to a foreach iteration variable.
ForEach接受一个消费者被执行的过滤流中的每个元素。
ForEach accepts a consumer to be executed for each element in the filtered stream.
但是,不像方法readlines,方法foreach不是返回一个数组。
However, unlike the method readlines, the method foreach does not return an array.
ForEach()的回调函数输出了传给它的信息。
The forEach() callback function outputs the information that is passed to it.
如果你使用的是集合或者数组,那么你会经常用到foreach循环.
If you're working with a collection or array, you often use a foreach loop.
C程序员会注意到Python中的for循环和C中的foreach循环很像。
C programmers willnote that the for loop in Python is similar to the foreach loop in C.
为了处理集合,新的JavaEL流API包括forEach、reduce、filter和map等操作符。
The Java EL stream API includes filters like forEach, reduce, filter, and map.
数组最后一个元素的$value引用在foreach循环之后仍会保留。
Reference of a$value andthe last array element remain even after the foreach loop.
ForEach方法现在是可调用的,但是在noImplicitAny下可能存在一些问题。
The forEach method will now be callable, but there may be some issues under noImplicitAny.
然而,当你使用forEach()的时候,它知道arr只有两个元素,虽然长度是10。
However, when you used forEach, it knew that arr only have two elements, though the length is 3001.
Foreach命令实现一个循环,在这里循环变量从一个或多个列表接受值。
The foreach command implements a loop where the loop variable(s) take on values from one or more lists.
在上面的例子中,filter、map和sorted都是中间操作,而forEach则是一个终端操作。
In the above example filter,mapand sorted are intermediate operations whereas forEach is a terminal operation.
Where和ForEach方法语法提供了对对象进行过滤和迭代的替代方法。
Where and ForEach method syntax provides an alternate method of filtering and iterating over objects.
不过,因为return在其中的行为不太明确,我们建议大多数其他情况下不要用forEach
However, because of the non-obvious behavior with return,we recommend against most other uses of forEach.
Arguments对象提供一个length属性,但是不实现forEach()方法,例如:.
The arguments object provides a length attribute butdoes not implement the forEach() method, for example.
ForEach()中的回调函数只需要首个参数,value,其它的都会忽略掉。
The forEach() callback function only makes use of the first argument, value, so the others are omitted.
在上面的代码中,Iamfor将会被打印1000次,而IamforEach只会打印两次。
If you run the code above, you will find that the I am for is printed 3001 times,whereas I am forEach is only printed twice.
例如,ArrayforEach给回调函数传3个参数:数组元素,索引和整个数组。
For example, Array forEach provides three parameters to the callback function: the array element, its index, and the containing array.
实现此接口的内建类可以使用foreach进行遍历而无需实现IteratorAggregate或Iterator接口。
Internal(built-in) classes that implement this interface can be used in a foreach construct and do not need to implement IteratorAggregate or Iterator.
另外,像sum()这样生成值的操作和forEach()这样产生副作用的操作都是“天然急性求值”,因为它们必须要产生具体的结果。
On the other hand, value-producing operations such as sum(),or side-effect-producing operations such as forEach(), are"naturally eager", because they must produce a concrete result.
Results: 29, Time: 0.0253

Top dictionary queries

Chinese - English