Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d72d074b1c2fff637b9863d33b3af41f06a55ce0
Ticket: a95309bf7057f8486a3aff8be658460631984d26
"lselect" to form a list from an existing list
User & Date: dkf on 2014-12-11 10:43:33
Changes

  1. icomment:
    Would this be a reasonable implementation?
    <verbatim>
    proc lselect {list args} {
        lmap index $args {lindex $list $index}
    }
    </verbatim>
    Remember that this will support lists of indices too. Cut-n-paste from a session:
    <verbatim>
    % lselect {a {b c {d e}} f {g h}} {1 1} 1 3 {1 2 0}
    c {b c {d e}} {g h} d
    </verbatim>
    
  2. login: "dkf"
  3. mimetype: "text/html"
  4. username: "dkf"