Re: Help for newb II

From: Googie (googie_at_no.spam.org)
Date: 11/02/04


Date: Tue, 02 Nov 2004 12:39:52 +0000

A Ferenstein wrote:

> set types [list {a000 {a010 {a011 a011 a011 a011}} {a020 {a021}}}]
This command creates list with 2 elements. First is:
{a000 {a010 {a011 a011 a011 a011}}
and the second one is:
{a020 {a021}}}

> and I always get "-1" - why can't lsearch not find "a000"?
Becouse there is no such element like a000. Can you see any? Take a
look at elements I've written above. a000 is SUBELEMENT of the first
element.

If you want to make a list from recurent sublists, see [concat] command
manual. It's what you need.

-- 
Pozdrawiam (Greetings)!
Googie


Relevant Pages

  • Re: 2 question or ask for the links
    ... > Now starnge situation on the one server all goes ok, ... > I send command to continuation some process on the this new file. ... > Fany thing is that order my log's is bad becouse info about reading is ... > early than info about buffer, as you see code printing buffer is early ...
    (comp.lang.tcl)
  • Portage tree
    ... I just wanted to ask you if there's a command to update the portage tree? ... becouse I saw qmail on the freebsd.org web and when I connect with ...
    (freebsd-newbies)
  • Re: section command
    ... it was using the package fancyhdr and the command ... I'm sorry becouse your loss of time. ...
    (comp.text.tex)
  • Re: Help for newb
    ... "A Ferenstein" writes: ... Here, the condition is quoted, so it's passed to the while command to ... while true {puts ...} ... David N. Welton ...
    (comp.lang.tcl)
  • Re: Is there ExtensionName_Deinit(interp) or sth?
    ... Thanks:) but doesn't work:(deleteProc is invoked only if deleting ... command, but not when exiting Tcl interpreter:/ ... Pozdrawiam! ...
    (comp.lang.tcl)