common-lisp Questions
2
Solved
So, I am very new to programming.
I would like to learn Common Lisp.
A few years ago, I used IDLE to write and run Python code. All it involved was downloading and installing one piece of software...
Hyperbolism asked 14/12, 2015 at 8:59
1
Solved
My question is:
How can I set the precision of my REPL print output?
As an example, this simple function here:
(defun gaussian (rows cols sigma)
(let ((filter (make-array `(,rows ,cols)))
(rowO...
Crompton asked 15/12, 2015 at 22:58
2
Solved
I'm a beginner programmer and am going through the book "Land of Lisp".
I have been typing in the examples from the book with the REPL. Is it possible to save my current program as a .lisp file s...
Bogan asked 14/9, 2011 at 23:48
2
Solved
My understanding of a struct is that it has slots to store data in, has a type, has make-X and slot-accessor functions, and can be specialized on by a method (since it has a type).
My understandin...
Epigrammatize asked 12/12, 2015 at 20:52
3
Solved
I'm busy learning Common Lisp, & I'm looking for a static code analysis tool that will help me develop better style & avoid falling into common traps.
I've found Lisp Critic and I think it...
Tithable asked 13/5, 2011 at 5:26
1
Solved
I have a file which has an bi-dimensional array in each line. I'm having trouble finding a way of parsing the file into actual arrays and them putting them in a list.
the file looks like this, th...
Radiobiology asked 8/12, 2015 at 12:17
1
Solved
This question is about coding conventions, best practices, and style in production, mission-critical Common-Lisp code. I perused Google's Common-Lisp Style Guide, but didn't find anything clearly a...
Westerfield asked 5/12, 2015 at 15:15
5
Solved
I have been reading a lot about Reinforcement Learning lately, and I have found "Reinforcement Learning: An Introduction" to be an excellent guide. The author's helpfully provice source code for a ...
Schizont asked 10/2, 2009 at 20:9
2
Solved
I want to reverse only the continuous sequences, not all the elements of my original list.
Ex:
(reverseC '( 1 2 ( 4 5 ) 5 ) ) => ( 2 1 ( 5 4 ) 5 )
(reverseC '(1 4 2 (3 4) 9 6 (7 8)))) => ...
Woodprint asked 27/11, 2015 at 0:24
2
Solved
Could anyone tell me what the most recent document standardizing Common Lisp is, please (one that shoud be followed by the various implementations)? I ask because many books about CL that I can fin...
Butcher asked 21/11, 2015 at 20:28
1
Solved
I want to make the most generic function and decided to go with keys as arguments.
I want to use allow-other-keys since I want to use the function with any key.
Let me show you:
(defun myfunc (a ...
Kocher asked 25/11, 2015 at 13:30
2
I'm trying to implement XOR-linked lists on Common Lisp, but i need to get an address of a variable to perform any bitwise operations on it.
Is there any way to get memory address of a variable, si...
Shavonneshaw asked 19/11, 2015 at 10:41
5
Solved
I am byte-compiling a module. It gives me this warning:
Warning: cl package required at runtime
Why is this a warning? I am well aware that I am using the cl package. In fact there is a (requir...
Spector asked 16/2, 2011 at 17:17
3
Solved
I have the following class:
(defclass category ()
((cat-channel-name
:accessor cat-channel-name :initarg :cat-channel-name :initform "" :type string
:documentation "Name of the channel of this ...
Cassy asked 20/11, 2015 at 13:52
4
Solved
I have Googled a handful of things such as "lisp documentation strings", "lisp comments", and a few others and I cant find anything that specifically addresses this.
I see a lot of code (especiall...
Jentoft asked 18/11, 2015 at 18:4
1
Solved
I use sbcl+emacs+slime.
I writing a function in lisp,
I use C-c C-c compile, but i've already deleted it.
I can't find it. I want to know how I define it.
I tried use function-lambda-expression, b...
Shennashensi asked 14/11, 2015 at 9:44
1
Solved
I want to rebind a special variable inside of a loop. Now, normally, this is accomplished using a let.
(let ((*read-eval* nil))
(do-something-here))
But since the loop macro has these nice with...
Biestings asked 30/10, 2015 at 2:22
4
Solved
Can anybody suggest a good tutorial or book for neural networks in Lisp, or a blog, or share some code sample?
I have experience with neural netowrks in the imperative languages C++, Java, C#, but...
Physiologist asked 9/2, 2011 at 7:36
2
Solved
In C, if I want to see a function that how to work, I open the library which provides the function and analyze the code. How can be implementations of the lisp functions seen? For example, intersec...
Dusen asked 15/10, 2015 at 6:22
2
I want to fix my own function that gives the same result with the default intersection function. I've been trying to write a lisp code which prints same elements in the two lists. My code works for...
Leeann asked 14/10, 2015 at 12:54
3
Solved
I have been programming in common lisp for a little while now, and throughout my experience using lisp, I have yet to see any function/macro that acts anything similar to function prototypes in C o...
Tantrum asked 30/8, 2014 at 21:26
1
Solved
In Python you can write this:
def firstn(n):
num = 0
while num < n:
yield num
num += 1
What is the lisp equivalent of this?
Gentian asked 5/10, 2015 at 19:7
2
How does lisp quote work internally?
For example:
(quote (+ 1 (* 1 2)) )
seems to be equivalent to
(list '+ 1 (list '* 1 2))
which means it is some how symbolizing the Head values recursively...
Colecolectomy asked 3/10, 2015 at 20:22
2
Solved
So I'm learning that Lisp does fractions which is great. But why then does this equality check return NIL:
* (= 0.2 1/5)
NIL
...while it returns True if it's converted to float first:
* (= 0...
Titania asked 1/10, 2015 at 14:3
7
Solved
I need to write a function that will concatenate a list into a string. example:
(concatString (quote ("hello" " world"))) ==> "hello world"
here is what i have so far:
(defun concatString (list...
Doridoria asked 28/3, 2011 at 9:58
© 2022 - 2024 — McMap. All rights reserved.