Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-12-22
04:25 • Closed ticket [1855666fff]: apply man page example error plus 7 other change... artifact: fc51daf1e2 user: dkf
2007-12-21
19:16 • Ticket [1855666fff]: 4 changes artifact: 7ee1d007dd user: kieranelby
11:36 • New ticket [1855666fff]. artifact: 851eae529d user: kieranelby

apply man page example error

Closed / Out of Date1855666fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-21 11:36:00
The 8.5.0 man page for the new "apply" command contains this example in the EXAMPLES section:

proc map {lambda list} {
   set result {}
   foreach $item $list {
      lappend result [apply $lambda $item]
   }
   return $result
}

Unfortunately, it fails to work - the foreach line should start :

   foreach item ...

not

   foreach $item ...
kieranelbyplain2007-12-21 19:16:05
Logged In: YES 
user_id=99072
Originator: YES

Sorry - I should have checked more thoroughly - this already seems to be fixed (in the source distribution at least).

However, the web page here is still incorrect: http://www.tcl.tk/man/tcl8.5/TclCmd/apply.htm
dkfplain2007-12-22 04:25:57
Logged In: YES 
user_id=79902
Originator: NO

Site's already updated.
Log in (anonymous is fine) to add a comment.