Search results
Results from the WOW.Com Content Network
It also returns nil values as nil, to allow for distinctions between nil and false. The module also accepts other Lua structures as input, i.e. booleans, numbers, tables, and functions. If it is passed input that it does not recognise as boolean or nil, it is possible to specify a default value to return.
Note: Lua patterns are not regular expressions in the traditional POSIX sense, and they are not even a subset of regular expressions. But they share many constructs with regular expressions (more below). Lua patterns are used to define, find and handle a pattern in a string. It can do the common search and replace action in a text, but it has ...
C: String.format(formatstring, items) Java: C: String.Format(formatstring, items) VB .NET, C#, F#.NET (format formatstring items) Scheme (SRFI 28) Lisp (format nil formatstring items) Common Lisp: Lisp (format formatstring items) Clojure: Lisp formatstring-f items: Windows PowerShell.NET [NSString stringWithFormat:formatstring, items] Objective ...
The loop macro in ANSI Common Lisp is anaphoric in binding, where the it expression refers to the result of the test expression in a clause. [2] [3]Here is an example that sums the value of non-nil elements, where it refers to the values of elements that do not equal nil:
Marshalling data between C and Lua functions is also done using the stack. To call a Lua function, arguments are pushed onto the stack, and then the lua_call is used to call the actual function. When writing a C function to be directly called from Lua, the arguments are read from the stack. Here is an example of calling a Lua function from C:
Format is a function in Common Lisp that can produce formatted text using a format string similar to the print format string.It provides more functionality than print, allowing the user to output numbers in various formats (including, for instance: hex, binary, octal, roman numerals, and English), apply certain format specifiers only under certain conditions, iterate over data structures ...
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
Two generalizations of assoc exist: assoc-if expects a predicate function that tests each entry's key, returning the first entry for which the predicate produces a non-NIL value upon invocation. assoc-if-not inverts the logic, accepting the same arguments, but returning the first entry generating NIL.