Overview
| Artifact ID: | 91ec695542de98cc96d4818fed8a2485621ef41d |
|---|---|
| Ticket: | f8bc8efdf547eb8ddd92218ee1f8d91d0e0b4937
Tutorial lesson 15 uses listName inconsistently with lappend/linsert/lreplace |
| User & Date: | neirbowj on 2016-08-23 22:32:46 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The command signatures for lappend and linsert are presented in Lesson 15 of the tutorial ("Adding & Deleting members of a list") as follows. lappend listName ?arg1 arg2 ... argn? linsert listName index arg1 ?arg2 ... argn? The latter should read like this instead. linsert list index arg1 ?arg2 ... argn? According to the tutorial, the following interactive session should set `otherlist` to `{{one} {oneandahalf} {two} {three} {four}}` and return `two` from the final `lindex` command. % set mylist [list one two three] one two three % lappend mylist four one two three four % lindex $mylist 3 four % set otherlist [linsert mylist 1 oneandahalf] mylist oneandahalf % lindex $otherlist 2 % - foundin changed to: "8.5"
- is_private changed to: "0"
- login: "neirbowj"
- priority changed to: "5 Medium"
- private_contact changed to: "1c2c806ffe757c7d753b24f4d1a4e6c176ba5348"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "neirbowj"
- subsystem changed to: "75. Tutorial"
- title changed to:
Tutorial lesson 15 uses listName inconsistently with lappend/linsert
- type changed to: "Bug"