From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.user Subject: Re: Comparison operators for strings /and/ numbers? Date: Thu, 24 Aug 2017 14:31:41 +0100 Message-ID: <20170824143141.63e9518a@dell.homenet> References: <1503554737.21598.3.camel@qlfiles.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1503581771 5965 195.159.176.226 (24 Aug 2017 13:36:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 13:36:11 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 24 15:36:07 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dksIe-0000lx-Ct for guile-user@m.gmane.org; Thu, 24 Aug 2017 15:35:56 +0200 Original-Received: from localhost ([::1]:48700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dksIl-0003XH-95 for guile-user@m.gmane.org; Thu, 24 Aug 2017 09:36:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dksEg-0008Q1-Cj for guile-user@gnu.org; Thu, 24 Aug 2017 09:31:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dksEd-0006vT-8J for guile-user@gnu.org; Thu, 24 Aug 2017 09:31:50 -0400 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:34932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dksEd-0006uf-1Z for guile-user@gnu.org; Thu, 24 Aug 2017 09:31:47 -0400 Original-Received: by mail-wm0-x230.google.com with SMTP id r134so5021658wmf.0 for ; Thu, 24 Aug 2017 06:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=mfVCrL+wkwD7js4oMewPWOcNCKlpNIqwQ4qNnuFL7+E=; b=Vz2hrjC0OMA4TTFqOYS/TSaTGYhPEyBDuvKT42iHuoUdmxj67PuoauL0XhDUWRPCrQ PrTmgtKudDzxXkwOfWcp5LyhXQhyPU6BwXmWYqLmOvlX5G0pJzjTS4vVU2Y0MJV8IX3q iGNFKvnp9d+k6jnSyqfou8BWcntnFwaMFDN0ZBMXXlHPrb+eIVLwAsbMYGqG82BGeFl9 hl1GPozyaSQTMawJjQ6wwfaC9E8n+t3KMlVDYF6w/3aTmn9aNQ4tYFgzClORBLOWCufv 3BUQM7/kFiqMuLf8eBXpAX9uP0RPxH1qHWGsKLBQMYRrcgJOWKrl1Dw4u8P2b8kfdd03 0awQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mfVCrL+wkwD7js4oMewPWOcNCKlpNIqwQ4qNnuFL7+E=; b=eXvRQiOY3yfZS8eothKPJD350ME4EZ/aSnuig2rsbDFLLdLy26eb1R/ktBAUbEXlO/ kwJxDNymhpNz2YB3D3+Dq50CiB3iLCepCK8rj5SsW9PHxySsItPdXLLWV7yuuwg0kb06 Fyb9UIucKNBV2krtC9bv0KUcqKUJwotN5L7YIh/rEEU6Y1lDnWtLD25gd7/ZytwR+HLw ER5FeT705BKTmVVt2iKrh21FcXfQwnLHPlgGDLQyzJpfepaae1pmL/i4+oL5b7LpWjIg 4gAue3HW/uYjZFZd2Ke4Ydd4Thwx4WXs1zGr3a6gxyGHTXzFex0y0ZRKtpP6a7ahheGk rmHw== X-Gm-Message-State: AHYfb5iKKnxuXVkBco2JtUaT9oBhJHFi55N0Zt/G+ot3e+hKmwVA7kNO YpFR8cTVYbIrZBzJ X-Received: by 10.28.127.210 with SMTP id a201mr4372460wmd.91.1503581504253; Thu, 24 Aug 2017 06:31:44 -0700 (PDT) Original-Received: from dell.homenet (76.73.114.87.dyn.plus.net. [87.114.73.76]) by smtp.gmail.com with ESMTPSA id w16sm7314981wrc.84.2017.08.24.06.31.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Aug 2017 06:31:43 -0700 (PDT) Original-Received: from dell.homenet (localhost [127.0.0.1]) by dell.homenet (Postfix) with ESMTP id 32697443170 for ; Thu, 24 Aug 2017 14:31:42 +0100 (BST) In-Reply-To: <1503554737.21598.3.camel@qlfiles.net> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14053 Archived-At: On Wed, 23 Aug 2017 22:05:37 -0800 Christopher Howard wrote: > Hi, in another lisp I have been working with, it has <, >, and == > (structure equality) operators which can take string arguments, number > arguments, or a mixture of both. But it seems in guile that there are > separate comparison operators for strings and for numbers. This makes > sense but is not very convenient for my present purpose. Is there some > other guile operators or extension operators that will handle both? I > could make some I'm sure, but I don't want to reinvent the wheel. The predicate equal? will compare numbers, strings and records. https://www.gnu.org/software/guile/docs/master/guile.html/Equality.html#index-equal_003f Chris