go top

function literal

网络释义

  函数字面量

...一个函数一般有如下三种方式: 函数关键字(function)语句: function fnMethodName(x){alert(x);} 函数字面量(Function Literals):

基于154个网页-相关网页

  函数显式声明

_.isUpperCase 的语 法是Scala 里的一种函数显式声明(function literal), 是一种编写少代码就可以到处传递和调用的速写方式。下划线代表该函数的唯一参数。

基于16个网页-相关网页

  函数文本

在Scala编程里匿名函数(anonymous function or lamda function)或函数文本function literal)的使用也很普遍。用书上的代码样例来示范:

基于16个网页-相关网页

  函式常量

在使用模式比对时,所使用的案例序列(Case sequence)实际上是一种函式常量Function literal)写法。你也可以将之当作函式来使用,例如(一个求 费式数列 的例子):

基于8个网页-相关网页

短语

literal function 文字功能

literal function logic 门函数逻辑

有道翻译

function literal

字面函数

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句原声例句

  • In this case, we passed in the following function literal.

    这个例子里我们传入这样个字面函数

    youdao

  • The result of this call is returned by the function literal.

    调用结果函数返回。

    youdao

  • We use a _ placeholder shortcut again in another function literal that we pass to foreach.

    我们传给foreach 的这个字面函数再一次使用个 _ 占位符。

    youdao

更多双语例句
  • Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.

    让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定