Closures are one of the common features of functional languages.
闭包是函数语言的共有特征之一。
There are concurrent extensions for other functional languages like LISP.
对于其他函数式语言,像LISP,存在并行扩展。
It follows a common pattern in functional languages for dealing with a list.
它采用函数语言中的一种常见模式处理列表。
This capability is important in functional languages for at least two reasons.
函数式语言的这一功能很重要,原因至少有两个。
But functional languages turn out to be very well suited to parallel programming.
不过事实证明函数型语言非常适合于并行编程。
Many functional languages have specific methods to iterate over lists using this idiom.
许多函数语言均利用这一特点通过特定的方法实现列表遍历。
It was inspired by the functional programming aspects of Lisp and other functional languages.
它受到了Lisp的函数编程特性和其他函数式语言的启发。
Closures are common in many programming languages, especially in functional languages, such as Clojure.
闭包在很多编程语言中非常常见,特别是在Clojure等函数语言中。
The problems amenable to solution by using higher-order functions aren't unique to functional languages.
适合采用高阶函数来解决的问题不仅限于函数式语言中。
This in turn exposes a fundamental shift in thinking in functional languages: Focus on results, not steps.
这反过来揭示了函数式语言的根本性转变:关注结果,而不是步骤。
By adding clean syntax and support, functional languages make recursion a candidate for simple code reuse.
通过增加简明的语法和支持,函数式语言使递归成为实现简单代码重用的候选方法。
One of the underlying tenets of this series is that functional languages should handle more low-level details for you.
本文章系列所持的一个基本宗旨就是,函数式语言应该为您处理更多低层面的细节。
Pure functional languages do not rely on operations that save or retrieve state and do not allow destructive assignments.
纯粹的函数性语言不依赖保存或检索状态的操作,因此不允许破坏性赋值。
Normally, functional languages eschew the while loop, because most of what while does can be done instead with recursion.
通常,函数语言会避开while循环,因为while实现的大多数操作都可以使用递归来完成。
Because you can include functions in the data structures, functional languages make excellent platforms for metaprogramming.
因为可以在数据结构中包含函数,所以函数性语言构成了元编程的优秀平台。
Instead, programs written in pure functional languages communicate by passing messages between concurrent, autonomous processes.
相反的,用纯函数式语言编写的程序在并发自主的进程中通过传递消息来通信。
As with other traditional functional languages, Scala requires that functions (in this case a method) must always return a value.
与其他传统函数语言一样,Scala要求函数(在本例中为一个方法)必须始终返回一个值。
In functional languages, most tasks that are accomplished with loops in traditional languages are instead accomplished with recursion.
函数式编程中,传统语言中用循环完成的多数任务都可以使用递归来完成。
Parallel programs seem more natural to me as extensions of functional languages; although I must admit that I haven't looked closely for others.
作为函数式语言的扩展,并行程序对我来说似乎更自然,尽管我必须承认我没有密切关注其他的。
The book is suitable for everyone from novices in functional languages to those who have experience with Erlang and want to improve their skills.
该书适合从函数式语言的初学者到那些有一定Erlang经验,并想要提高技能的人中的每一个人。
Composing functions in complex ways is the key to productivity in functional languages because you're continually raising your level of abstraction.
用复杂的方式组合函数,是函数性语言生产力的关键,这是因为这可不断提高抽象的层次。
An idea borrowed from functional languages, pattern matching is a powerful yet concise way to make a programmatic choice between multiple conditions.
模式匹配是从函数式语言中引入的强大而简洁的多条件选择跳转方式。
The big advantage of functional languages is that the order of execution doesn't matter. As a simple example, consider these two (algebraic) functions.
函数式语言的最大优点是执行的顺序无关紧要。
You just need to remember that Scala, like many functional languages, allows you to take blocks of code — aka functions — as parameters and apply them as desired.
您只需记得Scala像许多函数语言一样允许使用代码块(aka函数)作为参数并根据需要使用它们即可。
However, I've noticed a significant change in coding style on projects using languages that support these abstractions (whether they are functional languages or not).
然而,有些项目采用了支持这些抽象的语言(不管它们是否为函数式语言),在其中我观察到了编码风格的一个重大改变。
This means that it is much easier to write multi-threading applications in functional languages because immutable data structures inherently interact cleanly with threads.
这意味着以函数式语言编写多线程应用程序要容易得多,因为不可变数据结构与线程交互起来非常自然,因而代码可以很简洁。
Much of the strange magic you're about to see is due to Scala's functional nature, so a little background on the development and evolution of functional languages is probably in order.
您将看到的许多奇怪的、不可思议的东西都可以归功于Scala的函数特性,因此,简单介绍一下函数语言开发和演变的背景可能非常有用。
Rather than executing commands, all functional languages express and evaluate mathematical functions to solve problems. Functional languages also usually have these two characteristics.
函数性语言并不执行命令,而是通过表示、计算数学函数来解决问题。
Parrot supports a large number of languages, but one aspect that makes it so interesting is its support for both static and dynamic languages, including specific support for functional languages.
Parrot支持大量语言,但是让其如此有趣的一个方面是它同时对静态和动态语言的支持,包括对功能语言的特定支持。
Parrot supports a large number of languages, but one aspect that makes it so interesting is its support for both static and dynamic languages, including specific support for functional languages.
Parrot支持大量语言,但是让其如此有趣的一个方面是它同时对静态和动态语言的支持,包括对功能语言的特定支持。
应用推荐