[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Have one-argument '<? et al function as 'make<? et al
This page is part of the web mail archives of SRFI 114 from before July 7th, 2015. The new archives for SRFI 114 contain all messages, not just those from before July 7th, 2015.
- To: John Cowan <cowan@xxxxxxxxxxxxxxxx>
- Subject: Re: Have one-argument '<? et al function as 'make<? et al
- From: Alan Manuel Gloria <almkglor@xxxxxxxxx>
- Date: Sat, 15 Mar 2014 18:08:01 +0800
- Cc: srfi-114 <srfi-114@xxxxxxxxxxxxxxxxx>
- Delivered-to: srfi-114@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dS0Bu3/Q9vrGHXi8kzg1G+2gfaMqHMcV/+y+H6pHjC4=; b=sXN9iJ0QdS2gYhsexRP+BttsOQn9VBEVIknOBQ7+//iLMdBoru4EH7XnBiysLpqLhD 0p6DSSakIW6ryyfxvFHH023xz6HjuLO2gMM0k2lBAFNXbx/NPkm8l9zV/C4sy6oBf12t mipcInJbdcAxrAX4oF0PC0/gEaUuXFs3LUnmd9J46KPsBpU2mKvWvdtILpYp+WjPHylO fc5dk8EfcX5oyqsiuG9GctX953J6K4CpY1cgD9fE3Pu19U5s9s+xlGiHqg/zBJAy4IiV Ub1MwkyK6tb0DqpaqrBgJajwZvj0tPC5QRDhRUpdpWNRtugMxcE7tCfa6lxSIT9WNb1H JgMg==
- In-reply-to: <CAF+kUQWyj_DbwkEvN7jZgV1FR97KxkQ9FqFijk455e+7N==_Xw@mail.gmail.com>
- References: <CAF+kUQXvMMWYhVctTnbrc49+WT2DsO8YDq4N=5f4TOFXVnQcRw@mail.gmail.com> <20140305011253.GF18620@mercury.ccil.org> <CAF+kUQWyj_DbwkEvN7jZgV1FR97KxkQ9FqFijk455e+7N==_Xw@mail.gmail.com>
On Sat, Mar 15, 2014 at 6:02 PM, Alan Manuel Gloria <almkglor@xxxxxxxxx> wrote:
> It's not clear to me if (<? c) would mean anything useful anyway, so
On second thought:
#!sweet
define (sorted-list? srfi-114-comparator list)
! apply <? srfi-114-comparator list
The above function will work properly on an empty list (we assume
empty list is sorted) if (<? c) returns #t. But if (<? c) were to
return a function, it would instead return a function (well, a
function *is* a true value, so it will still work 99.99% of the
time....)
Sincerely,
AmkG