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

 
 

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

Submitter:  Ludovic Courtès <civodul>
Submitted:  Wed 30 Apr 2008 07:25:31 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

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

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>
Group 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>
Group 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>
Group 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>
Group administrator

 

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

Attach Files:
   
   
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
  • -email is unavailable- added by wingo (Posted a comment)
  • -email is unavailable- added by jackbenny (Posted a comment)
  • -email is unavailable- added by tampe (Updated the item)
  • -email is unavailable- added by civodul (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-12 wingo StatusNone Fixed
        Open/ClosedOpen Closed
    2010-04-16 tampe Attached File- Added take.scm, #20239

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code