Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 2dac72d826cc93902f4889a3eff0791b2cac2986
Ticket: a95309bf7057f8486a3aff8be658460631984d26
"lselect" to form a list from an existing list
User & Date: anonymous 2014-01-12 00:50:14
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    ~ Prototype
    
    lselect list element1 ?element2 ...?
    
    ~ Example
    
    set l {a b c}
    lselect $l 0 2 # a c
    lselect $l 0 # a
    lselect $l 0 1 2 # a b c
    lselect $l 4 # {} according to [lindex]
    
    ~ One implementation
    
    proc lselect {l args} {
    	foreach index $args {
    		lappend result [lindex $l $index]
    	}
    	return $result
    }
    
  5. is_private changed to: "0"
  6. login: "anonymous"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "c1589a2fa4fc7951c4aba10439d3b95af55c3a63"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: ""lselect" to form a list from an existing list"
  15. type changed to: "RFE"