Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorstevedonovan <steve.j.donovan@gmail.com>2011-03-28 20:22:43 +0400
committerstevedonovan <steve.j.donovan@gmail.com>2011-03-28 20:22:43 +0400
commitd42dad9183fef18adfd7e77969d2fa9ccd36bc98 (patch)
treed8a48bb98f5c7bc34e3d258e5b7cb8818d0bd009 /docs
parent5317bf455f0c4059c9dfca3c2f52a00f7febf40f (diff)
@see pl.list references fixed
Diffstat (limited to 'docs')
-rw-r--r--docs/penlight.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/penlight.md b/docs/penlight.md
index 7ade344..75aff6c 100644
--- a/docs/penlight.md
+++ b/docs/penlight.md
@@ -262,7 +262,7 @@ This useful notation is borrowed from Hugo Etchegoyen's [classlib](http://lua-us
### Python-style Lists
-One of the elegant things about Lua is that tables do the job of both lists and dicts (as called in Python) or vectors and maps, (as called in C++), and they do it efficiently. However, if we are dealing with 'tables with numerical indices' we may as well call them lists and look for operations which particularly make sense for lists. The Penlight `List` class was originally written by Nick Trout for Lua 5.0, and translated to 5.1 and extended by myself. It seemed that borrowing from Python was a good idea, and this eventually grew into Penlight. (@see list)
+One of the elegant things about Lua is that tables do the job of both lists and dicts (as called in Python) or vectors and maps, (as called in C++), and they do it efficiently. However, if we are dealing with 'tables with numerical indices' we may as well call them lists and look for operations which particularly make sense for lists. The Penlight `List` class was originally written by Nick Trout for Lua 5.0, and translated to 5.1 and extended by myself. It seemed that borrowing from Python was a good idea, and this eventually grew into Penlight. (@see List)
Here is an example showing `List` in action; it redefines `__tostring`, so that it can print itself out more sensibly:
@@ -546,7 +546,7 @@ Note that `find_if` will also return the _actual value_ returned by the function
(Note the special string '==' above; instead of saying `ops.gt` or `ops.eq` we can use the strings '>' or '==' respectively.)
-There are several ways to merge tables in PL. If they are list-like, then see the operations defined by `pl.list.List`, like concatenation. If they are map-like, then `merge` provides two basic operations. If the third arg is false, then the result only contains the keys that are in common between the two tables, and if true, then the result contains all the keys of both tables. These are in fact generalized set union and intersection operations:
+There are several ways to merge tables in PL. If they are list-like, then see the operations defined by `pl.List`, like concatenation. If they are map-like, then `merge` provides two basic operations. If the third arg is false, then the result only contains the keys that are in common between the two tables, and if true, then the result contains all the keys of both tables. These are in fact generalized set union and intersection operations:
> S1 = {john=27,jane=31,mary=24}
> S2 = {jane=31,jones=50}