Data dodania Pytanie
2017-08-15 10:08 function (OccurencesOfPrimes < list >) which counts the number of primes in a (possibly nested) list »
I am working on problem to get the occurence of Prime in a list in lisp. Input: Write a function (OccurencesOfPrimes < list >) which counts the ...
(1) odpowiedzi
2017-08-13 02:08 Get nth cdr of a list without using nthcdr »
I'm a Common Lisp beginner struggling with one of my assignment... One of my CS assignment is to create a function which basically works as the built...
(1) odpowiedzi
2017-08-11 21:08 Why won't can't I read from my usocket using usocket::socket-receive? »
I'm learning common-lisp, and I'm trying to write a dumb chat program using a client and server tcp socket connection using the usocket library. Below...
(0) odpowiedzi
2017-08-07 17:08 Can SBCL arrays have typed arrays as elements? »
Consider this simple example: (deftype image nil '(simple-array single-float (100))) Here we are defining a shorthand for a type that is an array t...
(2) odpowiedzi
2017-08-06 17:08 Reading structures with typed slots in SBCL »
Consider this simple code example: (defstruct test (:example nil :type (simple-array single-float))) (defparameter test-struct (make-test :examp...
(1) odpowiedzi
2017-08-05 22:08 How to create a common lisp (SBCL) vector of a particular type for usage in a usocket? »
I'm very new to Common Lisp and I am trying to learn how to program using network sockets. In the common lisp usocket api it specifies that the functi...
(1) odpowiedzi
2017-08-03 06:08 SBCL -Common Lisp Error »
I am trying to run the repository from the following link: https://github.com/JafferWilson/test-program I am getting this error: sbcl --script par...
(1) odpowiedzi
2017-08-01 18:08 Is my definition of the LISP cons-cell list correct? »
I'm trying to really understand LISP in order to have a good foundation moving forward, but it's been slow going because LISP (specifically Common Lis...
(4) odpowiedzi
2017-08-01 02:08 Package EXT does not exist »
I am currently working through the Land of Lisp examples and have run into a compile exception: package EXT does not exist from this line I suspect: (...
(1) odpowiedzi
2017-07-31 10:07 How to upgrade asdf version in quicklisp? »
I want to compile and run a lisp source code to parse peercoin blockchain so that i can get top 100 richest addresses. I am using lisp source code htt...
(0) odpowiedzi
2017-07-30 00:07 how to call Common Lisp codes from JSCL method »
JSCL is one of the implementations of Common Lisp(CL). It covers many of CL features except CLOS, format, etc. It has its REPL as other CL implement...
(1) odpowiedzi
2017-07-25 15:07 Blocked Matrix Multiplication »
I am trying to create a function that performs blocked matrix multiplication in AllegroCL, but I keep getting array-index errors. I believe it is due ...
(1) odpowiedzi
2017-07-24 16:07 Lisp sort function key »
I'm trying to sort a list that looks something like this: (defvar my-list '((:x 1 :y something) (:x 5 :y something) (:x 19 :y something))) I'm tryi...
(2) odpowiedzi
2017-07-24 02:07 Using parenscript set-interval function »
I've seen many examples where the (set-interval "my-method" n) function is used to call a function every n seconds in the browser, but I cannot get th...
(2) odpowiedzi
2017-07-23 12:07 LISP break a function execution »
How can I break a function execution in LISP if I get a certain value? For example, I have a main function like this: (defun recognize-a (arg input)...
(1) odpowiedzi
2017-07-20 17:07 LISP parameter binding »
I have to define a LISP function that assigns to a parameter the result of another function, like this: (defun assign-param (x) (defparameter param...
(2) odpowiedzi
2017-07-19 23:07 NFA recognizer in LISP »
I have to define a function in lisp that, given a regular expression and an e-NFA as input, it returns true if the expression is accepted by the autom...
(2) odpowiedzi
2017-07-18 03:07 Need help presenting a list »
I need help about the way for present a list in Lisp. I have this list of names and different lenguages (setq l '((david spanish german) ...
(2) odpowiedzi
2017-07-17 19:07 LISP meaning of # symbol »
In my Lisp code I have the function (nfa-regex-compile), which creates a list of cons with the initial state, the transitions and the final state (rep...
(1) odpowiedzi
2017-07-14 20:07 Is it reasonable to create large numbers of gensyms? »
I am considering using large numbers of gensyms to differentiate between objects in a system I'm building (like refs in erlang). Should I expect to r...
(1) odpowiedzi
2017-07-11 22:07 How to extract a certain atoms from a list in lisp »
I was wondering how can I define a function that extracts and delete certain atoms, which are passed as a parameter, from a list. For example: in this...
(0) odpowiedzi
2017-07-10 19:07 Passing a function as an argument - lambda expression error? »
I am trying to create a function that accepts a list and a function as parameters and applies that function to each element in the List. Here is my at...
(2) odpowiedzi
2017-07-02 11:07 If there is no distinct between read, compile and runtime in Lisp, can someone give me some intuitive examples? »
As I read blog Revenge of the nerds, It says (in what made Lisp different section): The whole language there all the time. There is no real distin...
(2) odpowiedzi
2017-06-28 23:06 How can I save the result of a dolist in a new list? »
I want to remove, with two given lists, the elements that aren't in both. The code that I am trying is: (defun remove_odd_ones(L1 L2) (cond ((or...
(0) odpowiedzi
2017-06-28 08:06 Count elements and return them »
I want to count the elements in a list and return a list containing the elements paired with them respective quantity Something like that: Input: (c...
(1) odpowiedzi
2017-06-23 23:06 Insert a Element1 before a Element2 »
I have two elements and a list. I have to insert the second element before the first element, every time that the first element appears, in the first ...
(2) odpowiedzi
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