常用的数据存储方法是数组,它很容易被一分为二的,但是合并两个数组则需要把两部分都拷贝到一个新的数组中(对内存有很大的要求)。
One common means of storing data, called an array, is very easy to split in two; but combining two arrays requires copying the contents of both into a new array.
这是一个常用的控制器,顾名思义,它有一个存储视图所需的模型数据的数组。
This is a commonly used controller that, as the name suggests, has an array that holds the model data needed for the view. All you need to do is provide the data for the controller and handle sorting.
实现这种功能最常用的方式是根据可用的语言特性使用函数组合技术。
The most general way of approaching this is by using techniques of function composition according to available language features.
应用推荐