让我们看一下怎样对一个通用函数建模的范例,使用parse_line作为例子。
Let's look at an example of how to model a global function, using parse_line as an example.
了解一个诸如函数式编程的新范例的一大挑战是了解其新的构建块,并将这些构建块看作是问题的潜在解决方案。
One of the challenges of learning a new paradigm like functional programming is learning the new building blocks and "seeing" them peek out of problems as a potential solution.
许多函数式范例都是围绕列表构建,因为大多数编程的最终目的就是解决列表问题。
Many functional paradigms are built around lists because much of programming boils down to dealing with lists of things.
应用推荐