Re: Help for newb II
From: Googie (googie_at_no.spam.org)
Date: 11/02/04
- Next message: Donal K. Fellows: "Re: Help for newb II"
- Previous message: Sacha Schär: "Re: Implementing Windows System tray"
- In reply to: A Ferenstein: "Help for newb II"
- Next in thread: Donal K. Fellows: "Re: Help for newb II"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Donal K. Fellows: "Re: Help for newb II"
- Previous message: Sacha Schär: "Re: Implementing Windows System tray"
- In reply to: A Ferenstein: "Help for newb II"
- Next in thread: Donal K. Fellows: "Re: Help for newb II"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|