Data dodania Pytanie
2017-06-16 20:06 Use package shadowing symbols »
For instance I have this package definition which shadows COMMON-LISP:LISTEN : (defpackage :shadows (:use :common-lisp) (:shadow #:listen) (:ex...
(3) odpowiedzi
2017-06-15 05:06 Lisp / parameter-passing »
In order to solve some issue I am having while using Common Lisp, I browsed the net and found this: Variable references in lisp which is very related ...
(1) odpowiedzi
2017-06-14 13:06 Write on file Common Lisp »
the problem is: i've a list of lists of lists like this: (((1 2) (3 4) (5 6)) ((7 8) (9 0))) i've to write it in a file, where numbers in every lis...
(1) odpowiedzi
2017-06-14 06:06 Symbols Produced By Intern »
Here is a code snippet: CL-USER> (setf (symbol-value (intern "foo")) 98) 98 CL-USER> foo ; Evaluation aborted on #<UNBOUND-VARIABLE FOO {100...
(2) odpowiedzi
2017-06-09 22:06 Read from file Common Lisp »
I need to read from a file but I'm having some issues with the code. I've to read i file like this: 1.0 4.5 4.555 6.43 4.0 5 ..... 6 3 2 numbers pe...
(1) odpowiedzi
2017-06-09 19:06 Inferior-Shell Live Print Output »
I'm using inferior-shell:run to launch a long-running task which can routinely fail (it's a build validation routine). My main issue is that I could ...
(1) odpowiedzi
2017-06-09 14:06 Macro Issues: Eval of a macro body works, but the macro doesn't »
Consider the following code snippet: [1]> (defvar *clist* '((2 1 21) ( 3 2 32) (4 3 43))) *CLIST* [2]> (eval `(case '1 ,@(mapcar #'rest *clist*...
(2) odpowiedzi
2017-06-08 08:06 Behaviour of "#'" in lisp »
As far as I understand '# is an abbreviation for (function ). But I noticed different behaviour while using #' in apply function. Example (apply ...
(1) odpowiedzi
2017-06-06 13:06 Call Lisp Code from R? »
Is there any way to connect R to Lisp? I have alogrithms written in Lisp but other part of my work is in R and I wanted to automate the entire process...
(0) odpowiedzi
2017-06-06 06:06 LISP file reading Loop condtion and sequential number »
Hello I have question about LISP LOOP condition in file reading and about sequential number in the loop What I want to do is read a file and save dat...
(1) odpowiedzi
2017-06-06 03:06 Common Lisp, list handling (append etc.) »
I have to manage this situation: (defun make-point (a b) (cons a b)) This function creates one of the point on the Cartesian axis (I omit generic c...
(1) odpowiedzi
2017-06-05 21:06 modify plist inside list? »
I have a list of plists such as '((:atom Toddler :visited nil :on-clauses (0 1)) (:atom Child :visited nil :on-clauses 1)) how should I change ...
(2) odpowiedzi
2017-06-05 17:06 How to read file and save data On LISP programming language »
I have a question about LISP Programming language What I have to do is read a file and save data in the file. To do this, I found the function like ...
(1) odpowiedzi
2017-06-05 13:06 Two common elements between lists »
I have a problem with this function two-similar-p. (defun two-similar-p (list1 list2) (mapcar (lambda (e) (mapcar (lambda (e1) ...
(1) odpowiedzi
2017-05-30 18:05 How can I make equivalence function in Common Lisp? »
I know that it is possible to check if 2 lists have the same sets with using "EQUAL" function in Common Lisp. (equal '(a b c) '(a b c)) => T ...
(2) odpowiedzi
2017-05-30 00:05 Equal function in Lisp »
I want to write an equal function that tell that any two numbers are equal, and that a symbol is equal only to itself. Also two lists should be equal ...
(1) odpowiedzi
2017-05-29 19:05 Deep reverse function in Lisp »
I want to write a deep reverse function in Lisp, with only relying on the original reverse function that Lisp provides, and some other common things. ...
(1) odpowiedzi
2017-05-29 11:05 Set operation A\B in Common Lisp »
I just started learning Common Lisp 2 days ago, so please excuse spaghetti code and non-understanding. My problem is the following: I want to write a...
(1) odpowiedzi
2017-05-29 09:05 How do I get the list of all environment variables available in a Lisp process? »
I want to enumerate the list of all environment variables available in my Lisp process. I want the same list that is returned by the C variable enviro...
(1) odpowiedzi
2017-05-25 17:05 CLisp: set encoding to UTF-8 for strings »
I have some piece of code: ; Palatal Pulmonic Consonants (loop for e in (list '(:nasal "ɲ") '(:plosive "c") ...
(1) odpowiedzi
2017-05-24 21:05 When to use Clojure's closures? »
I've written couple of Clojure programs, but I can barely remember that I used closures. What are the best use cases for using closures in Clojure? ...
(6) odpowiedzi
2017-05-21 17:05 "Stacking" effectful functions in functional language - DrRacket »
DrRacket is a functional programming language built in lisp. I created an effectful function called run-ins which take in an instruction and make som...
(1) odpowiedzi
2017-05-19 15:05 SBCL's statistical profiler does not show an entry for each function called »
I am using the statistical profiler of SBCL to profile these functions: (defun fact-rec (n) (if (zerop n) 1 (* n (fact-rec (1- n))))) ...
(1) odpowiedzi
2017-05-18 17:05 Clojure, unquote slicing outside of syntax quote »
In clojure, we can use unquote slicing ~@ to spread the list. For example (macroexpand `(+ ~@'(1 2 3))) expands to (clojure.core/+ 1 2 3) This ...
(1) odpowiedzi
2017-05-17 19:05 How to read a HTTP cookie in Common Lisp? »
I would like to make a single CGI program in Common Lisp, that reads a cookie. It is clear to me that I can send a Cookie by sending HTTP headers. Ye...
(2) odpowiedzi
2017-05-17 17:05 Lisp weird new line before print »
When I'm trying to print some text from terminal using "clisp hello.lisp" (where "hello.lisp" is name of my program) then new line is added before rig...
(2) odpowiedzi
2017-05-15 09:05 Clojure, can macros do something that couldn't be done with a function »
I'm learning Clojure macros, and wonder why we can't use just functions for metaprogramming. As far as I know the difference between macro and functi...
(1) odpowiedzi
2017-05-12 17:05 Recursion to make chord inversions »
I am a composer usually working with Max-MSP and OpenMusic. For porting some work from OM to Max, I have just started to learn LISP. My problem is ra...
(1) odpowiedzi
2017-05-04 03:05 Creating equivalent to incf as macro-function in lisp »
I'm just starting to learn the concept of macro functions. My teacher has asked us to create a macro function that would function exactly the same wa...
(1) odpowiedzi
2017-05-03 06:05 Distributive function in lisp to merge two lists »
I'm trying to create a function in lisp that receives two lists and distributes their values into a new list. I need to get the values of the first li...
(2) odpowiedzi
2017-05-03 05:05 Implement every, some in Lisp »
So, basically I have a Lisp programming homework. These operations are allowed: quote (’), car, cdr (cadadr, etc.), first, second (third, etc.), res...
(0) odpowiedzi
2017-04-30 10:04 How to write a lisp function which would have in his arguments a choice among several outputs options (i mean by output several possible operations ) »
Hello i try to write a lisp function or a macro which would have in his arguments a choice among several outputs options (i mean by output several pos...
(1) odpowiedzi
2017-04-29 11:04 Unbound Variable error in Lisp »
I am trying to do a function that removes duplicates from a list using Common Lisp on LispWorks. So I did two functions. The first one "remove-e" rem...
(1) odpowiedzi
2017-04-26 17:04 LISP: with predicate as parameter »
I want a predicate as a parameter of a function. (DEFUN per (F L) (cond ((F L) 'working) (T 'anything))) (per 'numberp 3) as res...
(1) odpowiedzi
2017-04-23 15:04 the function to list number in a list »
I have a question need your help. Writing a recursion function named list-number to list every number in list. For example, (list-number '(2 a 4 b...
(1) odpowiedzi