Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Long computations which yield zero are probably all for naught.


devel / comp.lang.tcl / Re: lsearch -real

SubjectAuthor
* lsearch -realManfred Rosenberger
+* lsearch -realpd
|`* lsearch -realRalf Fassel
| `- lsearch -realManfred Rosenberger
`- lsearch -realheinrichmartin

1
lsearch -real

<7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10596&group=comp.lang.tcl#10596

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:6903:0:b0:3b6:2cdc:81f1 with SMTP id bt3-20020ac86903000000b003b62cdc81f1mr1521279qtb.315.1674692748154;
Wed, 25 Jan 2023 16:25:48 -0800 (PST)
X-Received: by 2002:a25:4b46:0:b0:7fd:7b0:5e89 with SMTP id
y67-20020a254b46000000b007fd07b05e89mr2553923yba.225.1674692747992; Wed, 25
Jan 2023 16:25:47 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 25 Jan 2023 16:25:47 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:871:9:197:391e:f3d5:4fba:6a3e;
posting-account=WBIY8woAAAC6W65uFLcyTQKuVEZVEu3n
NNTP-Posting-Host: 2001:871:9:197:391e:f3d5:4fba:6a3e
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
Subject: lsearch -real
From: manfred....@gmail.com (Manfred Rosenberger)
Injection-Date: Thu, 26 Jan 2023 00:25:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1516
 by: Manfred Rosenberger - Thu, 26 Jan 2023 00:25 UTC

I do not understand the option -real
% lsearch -real {0 1 2} 0.0
-1
% lsearch -real {0 1 2} 0
0 % lsearch -real {0.0 1 2} 0.00
-1
% lsearch -exact {0.0 1 2} 0.00
-1
% lsearch -exact {0.0 1 2} 0.0
0 %
------------
it does not recognize
0 in {0 1 2} as the same as 0.0
0.0 in {0.0 1 2} as the same as 0
------------
to do a exact matching I could use: lsearch -exact ..
-----------
so how shall I expect the option -real is working?
---------
Thanks for responding!
Manfred

Re: lsearch -real

<%UmAL.310897$Tcw8.93608@fx10.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10597&group=comp.lang.tcl#10597

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Subject: Re: lsearch -real
Newsgroups: comp.lang.tcl
References: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
Content-Language: en-US
From: pd...@anon.net (pd)
In-Reply-To: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 29
Message-ID: <%UmAL.310897$Tcw8.93608@fx10.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Thu, 26 Jan 2023 03:59:55 UTC
Date: Thu, 26 Jan 2023 13:59:54 +1000
X-Received-Bytes: 1342
 by: pd - Thu, 26 Jan 2023 03:59 UTC

On 26/1/23 10:25, Manfred Rosenberger wrote:
> I do not understand the option -real
> % lsearch -real {0 1 2} 0.0
> -1
> % lsearch -real {0 1 2} 0
> 0
> % lsearch -real {0.0 1 2} 0.00
> -1
> % lsearch -exact {0.0 1 2} 0.00
> -1
> % lsearch -exact {0.0 1 2} 0.0
> 0
> %
> ------------
> it does not recognize
> 0 in {0 1 2} as the same as 0.0
> 0.0 in {0.0 1 2} as the same as 0
> ------------
> to do a exact matching I could use: lsearch -exact ..
> -----------
> so how shall I expect the option -real is working?
> ---------
> Thanks for responding!
> Manfred

% lsearch -exact -real {0.0 1 2} 0.00
0

man n lsearch

Re: lsearch -real

<1aa39d03-03b7-487c-8a57-ebc9290a2efan@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10598&group=comp.lang.tcl#10598

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:781:b0:706:a0e7:b4d3 with SMTP id 1-20020a05620a078100b00706a0e7b4d3mr1308885qka.279.1674718591759;
Wed, 25 Jan 2023 23:36:31 -0800 (PST)
X-Received: by 2002:a81:ac4e:0:b0:506:b04f:ecf7 with SMTP id
z14-20020a81ac4e000000b00506b04fecf7mr591282ywj.275.1674718591616; Wed, 25
Jan 2023 23:36:31 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 25 Jan 2023 23:36:31 -0800 (PST)
In-Reply-To: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.115.226.17; posting-account=Od2xOAoAAACEyRX3Iu5rYt4oevuoeYUG
NNTP-Posting-Host: 84.115.226.17
References: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1aa39d03-03b7-487c-8a57-ebc9290a2efan@googlegroups.com>
Subject: Re: lsearch -real
From: martin.h...@frequentis.com (heinrichmartin)
Injection-Date: Thu, 26 Jan 2023 07:36:31 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1985
 by: heinrichmartin - Thu, 26 Jan 2023 07:36 UTC

On Thursday, January 26, 2023 at 1:25:50 AM UTC+1, manfred wrote:
> I do not understand the option -real
> % lsearch -real {0 1 2} 0.0
> -1
> % lsearch -real {0 1 2} 0
> 0
> % lsearch -real {0.0 1 2} 0.00
> -1
> % lsearch -exact {0.0 1 2} 0.00
> -1
> % lsearch -exact {0.0 1 2} 0.0
> 0
> %
> ------------
> it does not recognize
> 0 in {0 1 2} as the same as 0.0
> 0.0 in {0.0 1 2} as the same as 0
> ------------
> to do a exact matching I could use: lsearch -exact ..
> -----------
> so how shall I expect the option -real is working?

Also note that you can search newsgroups.

Thread "lsearch -real not working as expected" is a prominent search results for "lsearch real".

To be fair, the wiki search did not help. Also, that thread is as old as COVID-19. But as you can see, the community will help out anyway ;-)

Re: lsearch -real

<yga8rhp9sv2.fsf@akutech.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10599&group=comp.lang.tcl#10599

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralf...@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: lsearch -real
Date: Thu, 26 Jan 2023 17:13:21 +0100
Lines: 45
Message-ID: <yga8rhp9sv2.fsf@akutech.de>
References: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
<%UmAL.310897$Tcw8.93608@fx10.iad>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net edMpbWhuU5b+xHzxmpEiwwpPQ2Z5Ub0c/lA7G09oSdzJXrSmw=
Cancel-Lock: sha1:X93QoLhma8CmNljqCwzOvECcYc8= sha1:LcO9Lse2+L75A8eOhIlqfXhAeHA=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Thu, 26 Jan 2023 16:13 UTC

* pd <pd@anon.net>
| On 26/1/23 10:25, Manfred Rosenberger wrote:
| > I do not understand the option -real
| > % lsearch -real {0 1 2} 0.0
| > -1
| > % lsearch -real {0 1 2} 0
| > 0
| > % lsearch -real {0.0 1 2} 0.00
| > -1
| > % lsearch -exact {0.0 1 2} 0.00
| > -1
| > % lsearch -exact {0.0 1 2} 0.0
| > 0
| > %
| > ------------
| > it does not recognize
| > 0 in {0 1 2} as the same as 0.0
| > 0.0 in {0.0 1 2} as the same as 0
| > ------------
| > to do a exact matching I could use: lsearch -exact ..
| > -----------
| > so how shall I expect the option -real is working?
| > ---------
| > Thanks for responding!
| > Manfred
>
| % lsearch -exact -real {0.0 1 2} 0.00
| 0
>
| man n lsearch

To be precise:

CONTENTS DESCRIPTION OPTIONS
These options describe how to interpret the items in the list being
searched. ***They are only meaningful when used with the -exact and
-sorted options.***

(*** emphasis by me)

-real The list elements are to be compared as floating-point values.

So you need both -real *and* -exact.

R'

Re: lsearch -real

<9af6ae0b-e5f0-4e9a-8742-6c2e959a7b13n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10601&group=comp.lang.tcl#10601

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:318f:b0:532:2005:dcb9 with SMTP id lb15-20020a056214318f00b005322005dcb9mr1351985qvb.15.1674775595663;
Thu, 26 Jan 2023 15:26:35 -0800 (PST)
X-Received: by 2002:a81:16cc:0:b0:506:3cd3:7e42 with SMTP id
195-20020a8116cc000000b005063cd37e42mr1841678yww.454.1674775595498; Thu, 26
Jan 2023 15:26:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 26 Jan 2023 15:26:35 -0800 (PST)
In-Reply-To: <yga8rhp9sv2.fsf@akutech.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:871:9:2c74:f423:804d:aa70:bc84;
posting-account=WBIY8woAAAC6W65uFLcyTQKuVEZVEu3n
NNTP-Posting-Host: 2001:871:9:2c74:f423:804d:aa70:bc84
References: <7fa6298d-f2aa-4281-b9be-141a453066cdn@googlegroups.com>
<%UmAL.310897$Tcw8.93608@fx10.iad> <yga8rhp9sv2.fsf@akutech.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9af6ae0b-e5f0-4e9a-8742-6c2e959a7b13n@googlegroups.com>
Subject: Re: lsearch -real
From: manfred....@gmail.com (Manfred Rosenberger)
Injection-Date: Thu, 26 Jan 2023 23:26:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1238
 by: Manfred Rosenberger - Thu, 26 Jan 2023 23:26 UTC

I see!
thx a lot!
Manfred


devel / comp.lang.tcl / Re: lsearch -real

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor