Questions tagged as 'lisp'

3
answers

Is there a dialect of LISP / Logo in Portuguese?

For children to program with words in English they can get in the way of understanding what everything is and does. I grew up with Superlogo in Dutch. Are there things like this in Portuguese?     
asked by 14.12.2013 / 20:14
2
answers

Convert a decimal number to binary in LISP language

Considering that you need to divide the number by 2 until it equals 1, and rearrange the remains, how could this conversion be done in LISP?     
asked by 30.05.2014 / 20:28
1
answer

Using LISP Functional Programming, answer the exercises?

Suppose you have 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)
asked by 13.10.2017 / 01:52
1
answer

include function in LISP

I'm having second thoughts on how to do an INCLINE function in LISP programming. I can name someone, but I can not add some additional information. The role will include additional information for a person in a list. Follow the code: (setq...
asked by 22.06.2015 / 16:11
1
answer

Doubt receive 3 numbers and say if the first is equal to the sum of the other two in LISP [closed]

I'm doing a function in Lisp that gets 3 numbers and says if the first is equal to the sum of the other two, the code I got was this: (defun maior(n1 n2 n3) (if (=(+ n2 n3)n1) (format t "~D é maior que ~D e ~D!" n1 n2 n3) ) But it's not...
asked by 06.09.2015 / 20:17
1
answer

How to cycle in lisp?

I've been learning lisp at university recently and I'm having some problems adapting to this language. Does let in this language work as a for in java? If so can you show me an example that gives you a rough idea of how it works?...
asked by 19.05.2017 / 13:14
1
answer

How to add .asd systems in lisp / Windows7?

So, guys, here's what I'm trying to do: I'm trying to run a code that interprets BRAINFUCK written in LISP, so I found this git: link It seems to be very user friendly and the best so far (the others I could not run, I guess for some bul...
asked by 29.02.2016 / 08:42
1
answer

exclusion function in LISP

I'm not sure how to do another function to delete the name and phone. Here is the code I did: (defun incluir (Agenda NomeTelefone) (cond ((atom A) (cons NT 'nil)) ((equal (car NT) (caar A)) (cond ((existeFone (c...
asked by 23.06.2015 / 16:05
1
answer

Starting in Lisp [closed]

How to get started in Lisp? Common Lisp to be more exact, it's a totally different language from what I'm used to (I only have 3 years of programming study), the installation examples I've seen are usually in consoles, I can not understand anyth...
asked by 23.10.2017 / 20:53
1
answer

Capture return value from query Racket

Hello, I'm a beginner on the racket. I would like to capture the insert-id value that returns in a struct called simple-result da query file that I run. The return is as follows: (simple-result '((insert-id . 30) (affected-rows . 1)))...
asked by 27.09.2018 / 21:23