aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-10-20 10:18:51 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-20 10:20:21 +1000
commitab0534c54bb78a72e1f7b803b335fd16142dd026 (patch)
tree0805c9487f8a22864cf956690e186c694e0a953f /jim_tcl.txt
parent2d499dd0fd27436b64777396e1ebd9ae7774d674 (diff)
downloadjimtcl-ab0534c54bb78a72e1f7b803b335fd16142dd026.zip
jimtcl-ab0534c54bb78a72e1f7b803b335fd16142dd026.tar.gz
jimtcl-ab0534c54bb78a72e1f7b803b335fd16142dd026.tar.bz2
Document dict keys and lsort -index
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 0e9a780..70fa188 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -82,6 +82,8 @@ Since v0.62:
20. Add 'info references'
21. Add support for 'after *ms*', 'after idle', 'after info', 'update'
22. 'exec' now sets environment based on $::env
+23. Add 'dict keys'
+24. Add support for 'lsort -index'
Since v0.61:
@@ -1693,6 +1695,12 @@ command. The legal *options* are:
be the value for that key. It is an error to attempt to retrieve
a value for a key that is not present in the dictionary.
+*dict keys* 'dictionary ?pattern?'+::
+ Returns a list of the keys in the dictionary.
+ If pattern is specified, then only those keys whose
+ names match *pattern* (using the matching rules of string
+ match) are included.
+
*dict set* 'dictionaryName key ?key ...? value'+::
This operation takes the *name* of a variable containing a dictionary
value and places an updated dictionary value in that variable
@@ -2799,7 +2807,7 @@ the list are to be matched against pattern and must have one of the values below
lsort
~~~~~
-+*lsort* ?*-integer*|*-command* 'cmdname'? ?*-decreasing*|*-increasing*? 'list'+
++*lsort* ?*-index* 'listindex'? ?*-integer*|*-command* 'cmdname'? ?*-decreasing*|*-increasing*? 'list'+
Sort the elements of *list*, returning a new list in sorted order.
By default, ASCII sorting is used, with the result in increasing order.
@@ -2814,6 +2822,10 @@ they are equal, or '1' otherwise.
If *-decreasing* is specified, the resulting list is in the opposite
order to what it would be otherwise. *-increasing* is the default.
+If *-index listindex* is specified, each element of the list is treated as a list and
+the given index is extracted from the list for comparison. The list index may
+be any valid list index, such as '1', 'end' or 'end-2'.
+
open
~~~~
+*open* 'fileName ?access?'+