All Questions
Tagged with common-lisp functional-programming
6 questions
2
votes
3
answers
295
views
BST traverse as higher order function [closed]
Consider the following function to traverse a BST
...
3
votes
1
answer
65
views
Utmost function that takes a comparator function
I'm working through Paul Graham's "ANSI Common Lisp". In Chapter 6 (p105), he introduces the idea of utility functions. He points out these are core to bottom-up programming and reusability. He ...
4
votes
0
answers
83
views
Pure functional code for the sublists of a list
The code below gives me the list of sublists of a list. Code can still be improved to avoid the use of append, right?
...
3
votes
1
answer
129
views
Golden Section Search in Lisp
I implemented the golden section search algorithm recursively in Lisp. My code is:
...
7
votes
2
answers
465
views
Sundaram's sieve in Common Lisp
I have this Sundaram's sieve to generate prime numbers up to limit in Common Lisp.
...
4
votes
1
answer
304
views
First Common Lisp vector math code
I'm studying Common Lisp on my own. Coming from C++, Common Lisp feels kind of strange sometimes. I'd like to get some feedback on what I understood so far.
For learning purposes, I wrote this simple ...