bugGuile - Bugs: bug #23112, SRFI-1 `drop-right' and...

 
 

bug #23112: SRFI-1 `drop-right' and `take-right' don't work with dotted lists

Submitted by:  Ludovic Courtès <civodul>
Submitted on:  Wed 30 Apr 2008 07:25:31 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 12 Aug 2011 09:31:50 PM UTC, comment #3:

Thank you for the patch and follow-up, Stefan! And apologies for the late reply. In the end I ended up committing something else, taking the implementation from http://srfi.schemers.org/srfi-1/srfi-1-reference.scm. It too does not deal well with circular lists. Oh well, though -- doesn't seem to be a big deal.

Cheers,

Andy

Andy Wingo <wingo>
Project Administrator
 Spam posted by jackbenny
 Spam posted by jackbenny
 Spam posted by jackbenny
 Spam posted by jackbenny
 Spam posted by jackbenny
Fri 15 Jul 2011 01:14:24 PM UTC, comment #2:

Note, the proposed code in take.scm below does not work for circular lists.

Stefan Israelsson Tampe <tampe>
Project Member
Fri 16 Apr 2010 03:40:29 PM UTC, comment #1:

I attached a file take.scm for a proposed fix of this issue.

I Will make a few tests that verify it's functioning and post it as well. but before that I will wait for eventual comments.

(file #20239)

Stefan Israelsson Tampe <tampe>
Project Member
Wed 30 Apr 2008 07:25:31 AM UTC, original submission:

SRFI-1 `drop-right' and `take-right' don't work with dotted lists (as of 1.8.4), but they should.

Original report: http://thread.gmane.org/gmane.lisp.guile.devel/7196 .

Ludovic.

Ludovic Courtès <civodul>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #20239:  take.scm added by tampe (656B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wingo (Posted a comment)
  • -unavailable- added by jackbenny (Posted a comment)
  • -unavailable- added by tampe (Updated the item)
  • -unavailable- added by civodul (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Aug 2011 09:31:50 PM UTCwingoStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 16 Apr 2010 03:40:29 PM UTCtampeAttached File-=>Added take.scm, #20239

    Back to the top


    Powered by Savane 3.1-cleanup1