[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] luatexts 0.1
- From: Dirk Laurie <dpl@...>
- Date: Mon, 4 Apr 2011 19:32:59 +0200
On Mon, Apr 04, 2011 at 06:57:03PM +0200, Ed wrote:
> Does anyone uses "table-as-key"?
doc = {
[string] = [[
This library provides generic functions for string manipulation, such as
finding and extracting substrings, and pattern matching. When indexing a string
in Lua, the first character is at position 1 (not at 0, as in C). Indices are
allowed to be negative and are interpreted as indexing backwards, from the end
of the string. Thus, the last character is at position -1, and so on. ]]
}
function help(item) print(doc[item]) end
help(string)