函数风格的结果集处理(select3.jy)
函数编程是一种编程风格,它将关注点从执行命令转移到表达式计算。
Functional programming is a style of programming that moves the focus from executing commands to the evaluation of expressions.
更新3通过在XMLQUERY函数中使用SQL风格的参数标志(“ ? ”)来实现这个目标。
Update 3 allows you to do just that by using an SQL-style parameter marker ("? ") in the XMLQUERY function.
有两种风格的PHP数据库API函数:过程式的和面向对象的。
PHP database API functions are also made available in procedural style and in an object-oriented style.
这些函数与其他函数在风格上类似,只是前者打开和关闭的标记通常有一些嵌套的元素。
These functions are similar in style to the rest of the functions except they open and close tags that generally can have a few to several nested elements.
要想了解函数编程风格的好处以及它在Erlang中的实现方式,最好的方法是了解fibonacci函数。
A perfect way to see the benefits of the functional programming style, and how this works within Erlang, is to look at the Fibonacci function.
Go语言支持类似于C语言中使用的面向对象风格。数据被组织成structs,然后定义操作这些structs的函数。
The Go language supports a style of object-oriented programming similar to that used in C. Data is grouped together into structs, and then functions are defined which operate on those structs.
这就是所谓的驼峰式大小写风格(camelcasing),是Python和其他编程语言中广泛采用的一种技术,可使函数的名称更易阅读。
This approach is known as camel casing and is a popular technique used in Python (and other languages) to make it easier to read the names of functions.
由于Scala融合了对象和函数语言风格,我实际上建模了Person(如上所述),但并未创建子类型。
Due to Scala's fusing of objects and functional-language styles, I could actually model my Person, as described above, but without creating subtypes.
创建如此轻量级函数的能力结合GroovyMOP的力量,使我们只需极少代码就能实现若干AOP风格的魔术。
The ability to create such lightweight functions combined with the power of the Groovy MOP will enable us to implement some AOP-style magic with very little code.
随着函数式编程风格崭露头角,你们觉得这种这种范式是否会走进未来PHP的世界?
With the emergence of the functional style of programming, do you see features from this paradigm going into some future of PHP?
本文中的例子使用的是面向对象的风格,但使用函数式方式可以获得同样的结果。
The examples in this article use the object-oriented style, but you can obtain the same results using a functional approach.
正如本专栏关于函数型编程的部分文章中所评述的,程序流的方法风格相对来说容易出错并且难以维护。
As this column's installments on functional programming have observed, the recipe style of program flow is comparatively error-prone and difficult to maintain.
本文还研究了R的函数式程序设计风格可以如何有助于加速模式、数据和分析情形的的探索。
This installment also explored how r's functional programming style AIDS in rapid exploration of patterns and data and analytic scenarios.
编程模型是优雅的,基于构造函数的风格意味着您无需包括无参构造函数。
The programming model is elegant, and the constructor-based style means you don't have to include a constructor without arguments.
然而,有些项目采用了支持这些抽象的语言(不管它们是否为函数式语言),在其中我观察到了编码风格的一个重大改变。
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).
另外,对于出于设计原因拥有private构造函数而没有复制构造函数的类,所以这种交换风格不适用。
Also, for classes that have design reasons to have private or no copy constructor, this style of swapping won't work. Here's what boost: : swap gets you.
Ocaml被选中的一部分原因是,它支持函数式、命令式和面向对象的混合编程风格。
OCaml as was chosen a basis in part because it supports a mix of functional, imperative, and object-oriented programming styles.
Scala旨在提供一种编程语言,能够统一和一般化分别来自面向对象和函数式两种不同风格的关键概念。
Scala aims at providing a programming language which unifies and generalizes key concepts from both object-oriented and functional styles.
首先,函数教育的内容、要求甚至表述风格在我国大纲及教材中总体上是稳定的,并且是重形式化的。
First, the content, the request even the style of representation of function education in our curriculum standards and the textbook as a whole is stable and heavy formalization.
到39行的 updateDivisions函数发送一个请求给REST 风格的Web服务,以获取实验室NCAR管理员在实验室选项菜单中所选择的部门。
The updateDivisions function from lines 28 to 39 sends a request to the RESTful Web service to get the divisions that the lab NCAR administrator selects in the lab option menu.
这种风格的构造函数并不常见,它返回一个称作self的值。
This particular style of constructor is unusual in that it returns a value called self.
pool接口需要知道每个单独的元素而不是类型的大小,因为它是一个malloc风格的分配程序,不会调用构造函数。
The pool interface needs to know the size of each individual element and not the type, because it's a malloc-style allocator and doesn't call constructors.
使用一个构造函数,提供内容作为第一个参数,风格作为第二个参数,属性作为第三个参数。
With a single constructor, you provide the content as the first parameter, the flavor as the second, and the attributes as the third. The constructor is as follows
要使用函数性语言,只需要放弃命令式编程的风格。
To use a functional language, you just need to let go of imperative programming styles. Learning to write in a more functional style has several benefits.
表4-1列出了C 语言标准库提供的一系列处理C 风格字符串的库函数。
The Standard C library provides a set of functions, listed in Table 4.1, that operate on C-style strings.
此成员函数用指明一次拖放操作的目标的风格来重画该项。
Call this function to redraw the item in the style used to indicate the target of a drag-and-drop operation.
此成员函数用指明一次拖放操作的目标的风格来重画该项。
Call this function to redraw the item in the style used to indicate the target of a drag-and-drop operation.
应用推荐