Most voted "lisp" questions
Lisp is a family of programming languages with a Polish prefix notation associated with parentheses.
Learn more…16 questions
Sort by count of
-
5
votes3
answers227
viewsIs there a dialect of LISP/Logo in Portuguese?
For children programming with English words can get in the way a little to understand well what everything is and does. I grew up with Superlogo in Dutch. There are things like this in English?…
-
4
votes2
answers377
viewsConvert a decimal number to binary in LISP language
Taking into account that it is necessary to divide the number by 2 until it is equal to 1, and to reorganize the remains, how this conversion could be made into LISP?
lispasked 10 years, 5 months ago user3000135 127 -
3
votes1
answer218
viewsfunction include in LISP
I’m having doubts about how to make a feature include in LISP programming. I can name someone, but I can’t include any additional information. The function will include additional information of a…
-
3
votes1
answer98
viewsUsing LISP Functional Programming, respond to exercises?
Suppose they were defined: (defun xxx (x) (+ 1 x)) (setf xxx 5) What is the value of the following expressions? (xxx 2) (xxx (+ (xxx 5) 3)) (+ 4 xxx) (xxx xxx)…
lispasked 7 years, 1 month ago Gustavo Aryel 75 -
2
votes1
answer251
viewsLISP exclusion function
I’m having doubts on how to do another function to delete the name and phone. Follow the code I made: (defun incluir (Agenda NomeTelefone) (cond ((atom A) (cons NT 'nil)) ((equal (car NT) (caar A))…
-
2
votes2
answers75
viewsWith calling a file in Clojure?
Hello, I have already searched in several places, but I did not find the answer I wanted. I have the following function in the archive home.clj (defn hello [request] (let [name (get-in request…
-
2
votes1
answer52
viewsCheck if two elements of a list are numbers
I’m trying to verify that two elements of a three-element list are numbers. I just want to check the second and third elements of the list. I have the following code and cannot identify the error:…
-
1
votes1
answer78
viewsDoubt receive 3 numbers and tell if the first is equal to the sum of the other two in LISP
I’m doing a function in Lisp that receives 3 numbers and says if the first is equal to the sum of the other two, the code I arrived was this: (defun maior(n1 n2 n3) (if (=(+ n2 n3)n1) (format t "~D…
lispasked 9 years, 2 months ago Danilo Baptista 31 -
1
votes1
answer35
viewsHow to add . Asd systems in Lisp/Windows7?
So guys, here’s the thing, I’m trying to run a code that interprets BRAINFUCK written in LISP, so I found this git: https://github.com/equwal/LispFuck it seems to be very friendly and the best so…
-
1
votes1
answer210
viewsHow to make the cycle in Lisp?
I’m learning lisp at university recently and I’m having some problems adapting to this language. The cycle let in this language works like a for in java? If yes can show me an example that gives to…
lispasked 7 years, 6 months ago rodrigo lopes 11 -
1
votes2
answers116
viewsDoubt Equation second degree , returns the real and imaginary parts
I’m having a doubt in an example I’m trying to develop in Isp the exercise says: Modify the function that returns the roots of a second degree so that the real and imaginary parts of the roots…
lispasked 7 years, 1 month ago Gustavo Aryel 75 -
1
votes1
answer40
viewsCapture Racket query return value
Hello, I’m a beginner in Racket. I would like to capture the value Insert-id that returns in a flame struct simple-result of query which I execute. The return is as follows: (simple-result…
-
1
votes0
answers61
viewsReturn lower value from a list - Lisp
I want to return the smallest value of a list with an iterative function in Lisp. The code I have is this:: (defun rmin (lista) (let ((minim (first lista))) (loop for a in (lista) (if (< a minim)…
-
0
votes1
answer106
viewsStarting at Lisp
How to start in Lisp? Common Lisp to be more exact, it’s a totally different language than I’m used to (I only have 3 years of programming study), the installation examples I’ve seen are usually on…
lispasked 7 years ago Gabriel Antunes 31 -
0
votes1
answer96
viewsRemove multiple elements from a list [COMMON LISP]
I want to remove several elements from a list and return the list without these elements. (defun removeAll (lista1 lista2) . . . ) Entrada: > (removeAll '(a b c) '(a b c d)) Saída; > (d) I’ve…
-
0
votes1
answer87
viewsFunction that returns first element of a list
I am trying to make a function that will return the first element of a list in Clisp. I have the following code: (defun pr(NomeDaCidade X Y) (first '(NomeDaCidade X Y))) And trying to call it like…