How do I take a slice of a list (A sublist) in scheme?

Posted by troelskn on Stack Overflow See other posts from Stack Overflow or by troelskn
Published on 2008-09-20T13:36:52Z Indexed on 2010/05/20 12:00 UTC
Read the original article Hit count: 99

Filed under:
|

Given a list, how would I select a new list, containing a slice of the original list (Given offset and number of elements) ?

EDIT:

Good suggestions so far. Isn't there something specified in one of the SRFI's? This appears to be a very fundamental thing, so I'm surprised that I need to implement it in user-land.

© Stack Overflow or respective owner

Related posts about lisp

Related posts about Scheme