So I have a simple file.scm file with following code in it: #!/usr/bin/guile -s !# (define (printer arg) (display arg)) I know you can execute it inside gui
I am working on coming up with a solution for coming with a list of prime numbers using the Sieve of Eratosthenes. So the program is supposed to find prime numb
I'm currently reading the SICP, and working on Exercise 2.5 : Exercise 2.5. Show that we can represent pairs of nonnegative integers using only numbers and ari
My background is Javascript, Python & a bit of Haskell. I am trying to understand callCC, there are many explanations but I can't find them trivial & I
I need some hits how I should go about and implement continuation for lips in JavaScript (my lisp is almost like scheme, except no continuations and TOC). Here
I want to define a function in Scheme that will compute the outer product of two vectors. for example: (outerProduct '(1 2 3) '(4 5)) the output is supposed to
I am trying to write a function in Scheme and Prolog that returns first, middle and last item of a list. E.g., find([4,5,8,7,9],L), L = [4,8,9]. I came up with
There was a question regarding this exercise in this forum, but it dose not answer my specific question. This exercise asks to draw the environmental diagrams f
I think I'd have to dig into SICP later, but if it is two lists: a b c d 1 2 3 Is there a standard way to get the multiplication of them in 2, 3 or 4 lines? So
Emacs lisp is a dialect of LISP and especially Scheme. Most of scheme interpreters do have a optimization of Tail Recursion, but emacs lisp doens't. I searched
So I have to remove the last element of a list in scheme. For example, let's say I have a list (1 2 3 4). I need to return: (1 2 3) My idea: reverse(list)