This is like the take function, but it takes a predicate.
它类似于take函数,但它接受一个断言。
The take function is used to take a certain number (in this case, 10) of elements from a sequence.
take函数用来从一个序列中取得一定数量(在本例中是10)的元素。
The function of a well-designed state intervention is not to deprive people of liberty but to build social capacity and infrastructure that helps people take responsibility for their wellbeing.
规划完善的国家干预不应剥夺人的自由,而应建立起社会能力和基础设施,以帮助人们对自己的幸福负责。
Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.
正如字面意义上说的,从这个函数返回,然后取得下一个表达式的值,并把这个值作为整个计算的结果返回。
This function can take a single gray parameter or three parameters for RGB.
此函数可接受一个单独的灰度参数或三个RGB参数。
Create a reverse function - one that will take a timestamp for a certain locale and return the equivalent UTC timestamp.
创建一个反转函数——该函数将以某个地区的时间戳作为参数,并返回对应的UTC时间戳。
The function will take whatever actions are needed, and then return the name of the next state.
这个函数将执行所需的操作,然后返回下一个状态的名称。
Take a look at the function shown in Listing 5.
看一下清单5 中所示的函数。
Layering and compositionality imply that the transition from providing some service or function in-house to sourcing the service or function can take place between any of the model's layers.
从这样的分层和组合性可以知道,在模型的任何层之间,都可能从场地内服务或功能供应转换到服务和功能外包。
A function call would take way too much overhead for a simple operation.
对于这种简单的操作来说,函数调用的开销太大。
The frontal cortex is where attention, decision-making and executive function take place.
前皮层是发挥注意力、决策和执行功能的区域。
In this article, we'll leave their function aside and take a look at chairs purely from an artistic point of view.
在本文中,我们暂且把功能置于一旁,纯粹从艺术的视角来欣赏下椅子。
Contrast that with a function, which doesn't take any selected elements as arguments.
相比之下,函数不使用任何选定元素作为参数。
Well, you take the gradient of a function.
作出一个函数的梯度。
Take the function shown in Listing 6 from a snippet of code.
看看清单6所示的函数。
Take a look at the function onview inside the file FlexWrapper.js to see how the tag is constructed.
可以通过查看Flex Wrapper . js文件中的onview函数,了解这个标记是如何构造的。
Take a look at the initialize function.
请看一下initialize函数。
This important capability lets many Haskell functions take a function as a parameter.
这项重要的功能让众多的Haskell函数可以接受函数作为参数。
These take a function as an input parameter and return an instance of OnClickListener, the interface defined in the Android SDK.
这两个函数以一个函数作为输入参数,并返回OnClickListener的一个实例,OnClickListener是Android SDK中定义的一个接口。
The first argument to lambda is the list of arguments the function can take.
lambda的第一个参数是函数可以取得的参数列表。
The function can take input parameters, which are supplied in parentheses that follow the function name (in this case, myFunction).
函数可接受输入参数,输入参数在紧接着函数名(在本例中为myFunction)之后的圆括号内提供。
It can also take another optional callback function to handle errors, but we have left that out to keep this example simple.
也可以利用另一个可选callback函数来处理错误,但是为了保持示例的简洁,我们放弃了使用它。
The above example is a good use case for closures: It USES one of the 18 standard PHP array functions that take a function as a parameter (such as array_walk, usort, and array_app).
以上示例是closures很好的使用例子:它采用18个标准php阵列函数之一,它将函数作为参数(比如array_walk、usort、和array_app)。
For example, for functions that take optional arguments, the wrap_*() function extracts the optional argument.
例如,对于使用可选参数的函数,wrap_*()函数将提取可选的参数。
Ext.Direct calls take a function as an argument, itself accepting two arguments: provider and response.
Direct调用用一个函数作为参数,它本身接受两个参数:provider和response。
The count function can take any sequence.
count函数可用于任何序列。
You can use the ml_inv function to take the inverse of the in matrix and assign it to the out matrix.
您可以使用 ml_inv函数对in矩阵进行求逆运算,并将结果赋予out 矩阵。
You should not take current Broker Explorer function as a definitive statement of future tooling support.
您不应将目前的BrokerExplorer功能视为未来工具支持的最后定论。
OK, now that we've reviewed the function, we can take our first look at "if" statements.
好,已经回顾了功能,下面来初探 "if" 语句。
OK, now that we've reviewed the function, we can take our first look at "if" statements.
好,已经回顾了功能,下面来初探 "if" 语句。
应用推荐