This function literal does a pattern match on the message instance to decide how to handle the message.
这个字面函数给消息做了一个模式匹配来决定它被如何处理。
In this case, we passed in the following function literal.
在这个例子里,我们传入这样的一个字面函数。
Note that an assignment statement which is assigning a function literal or object literal is still an assignment statement and must end with a semicolon.
注意一个函数赋值或对象赋值语句也是赋值语句,应该以分号结尾。
We use a _ placeholder shortcut again in another function literal that we pass to foreach.
我们在传给foreach 的这个字面函数中再一次使用了一个 _占位符。
Choosing a date generates an XPath literal expression as input to the function representing the chosen date and time.
选择一个日期将生成XPath字面表达式作为函数输入,表示所选的日期和时间。
So, map passes each String in strings to the function literal and builds up a new collection with the results returned by the function literal.
继续,map 把strings里面的每一个String传递给字面函数,从而用这些返回值创建了一个新的集合。
For now, what you need to know is that the expressions inside the braces constitute a single function literal that is passed to receive.
现在,我们需要知道的是,在括号中的表达式组成了一个字面函数,并且传递给了receive。
This expression is actually the body of an "anonymous function", called a function literal in Scala.
这个表达式实际上是一个“匿名函数”的函数体,在Scala中称为字面函数。
This value attribute USES the XPath concat function to combine the literal string 'Hello' with the current value of the Name element in the model.
该value属性用XPathconcat函数把文字串'Hello '和模型的Name元素的当前值连起来。
The method body calls the map method on the strings array, which takes a function literal as an argument.
函数的主体调用了strings数组的map方法,它接受一个字面函数(Function Literal)作为参数。
If a function literal is anonymous, there should be one space between the word function and the left parenthesis.
如果函数是匿名函数,则在function和左括号之间应有一个空格。
We use the STR function to parse the multi-line string literal.
我们使用了str函数来解析这个多行字符串。
The printk function relies on a feature of the C language called string literal concatenation.
printk 是基于C语言中一个名为字符串逐字连接 的特性。
In Listing 15, we revisit our problem of evaluating a concat function by creating a match function (to find concat nodes with string-literal arguments) and an editor function (to evaluate the concat).
在清单15中,我们创建了一个match函数(用于查找具有字符串参数的连接节点)和一个editor函数(用于对连接求值),再次遇到了对concat函数求值的问题。
Here context refers to static context and dynamic context; and meaning is not the static and literal meaning, but the dynamic meaning which realizes its communication function in certain context.
指出语境分为静态语境和动态语境,所述的意义不是静止的、文字本身固有的意义,而是在某特定语境中实现了交际功能的动态的意义。
The first call passes a string literal but the function parameter is an int.
第一个函数调用传递了一个字符串字面值,但是函数的形参却是int型的。
A multiple function literal circuit is introduced in the paper. And its basic realization is discussed.
引入了一种多功能文字电路,并讨论了其基本实现。
The first statement of the function body can optionally be a string literal; this string literal is the function's documentation string, or docstring.
函数体的第一行可以是一个字符串值,这个字符串是该函数的(文档字符串(documentationstring)) ,也可称作docstring 。
When you are using a string literal as a return value from a function, it will work properly.
当您使用一个字符串作为从一个函数返回值,它将正常工作。
When you are using a string literal as a return value from a function, it will work properly.
当您使用一个字符串作为从一个函数返回值,它将正常工作。
应用推荐