Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #31.8K
Ranked #4K
~725 People Reached
Favorite Tags

5 Posted Topics

Member Avatar for jcoder

I would do this with two mutually recursive functions: [code] (define (list-next? ls) (cond ((null? ls) #t) ((list? (car ls)) (atom-next? (cdr ls))) (#t #f))) (define (atom-next? ls) (cond ((null? ls) #t) ((atom? (car ls)) (list-next? (cdr ls))) (#t #f))) (define (alternating? ls) (cond ((null? ls) #t) ((list? (car ls)) …

Member Avatar for GDICommander
0
135
Member Avatar for deltemis

[QUOTE=deltemis;982189][code] (define nonlat? (lambda (list) (null? list))) [/code][/quote] So, this "nonlat?" is a function that takes one parameter, which is named "list" internally. It returns the result of calling "null?" on that parameter, i.e. the list. Of course, to do that, you can as well just call "null?" instead of …

Member Avatar for Harleqin
-1
111
Member Avatar for Bisaye
Member Avatar for Bisaye
0
108
Member Avatar for winrawr

I use SBCL with SLIME in Emacs, and I think that it's a nice setup to start with. There is also LispWorks Personal Edition, which is free for personal use, but has some "nagging" limitations. However, as a commercial Lisp, it is very well maintained.

Member Avatar for Harleqin
0
112
Member Avatar for taylola

[QUOTE=taylola;820596] Split and return a list of two lists at a given element; call it (split List Element). The given element should be the head of the second list. (split ‘(2 3 4 6) 4) => ((2 3) (6)). If the element is not in the list, a list consisting …

Member Avatar for Harleqin
0
259

The End.