Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 874ab68d7810e01347d03cf2f48bad3bbc7fdb1f
Ticket: 1227494fffffffffffffffffffffffffffffffff
More list ops
User & Date: dkf on 2005-06-26 05:52:18
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    the lindex, llength and lrange operations are trivially
    composed out of [dict get] and the appropriate list operation.
    
    The other two operations are actually constructable through
    the use of the [dict update] command, rather like this:
      proc dict_lset {var key index value} {
         upvar 1 $var d
         dict update d $key theList {
            dict set d $key {}  ;# Performance hack!
            lset theList $index $value
         }
      }
    
    Because of this, this is a low-priority FRQ at best.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. priority changed to: "3 Low"
  5. username: "dkf"