Questions tagged [chicken-scheme]

CHICKEN is a compiler for the Scheme programming language.

CHICKEN is a compiler for the Scheme programming language. CHICKEN produces portable, efficient C, supports almost all of the R5RS Scheme language standard, and includes many enhancements and extensions. CHICKEN runs on Linux, MacOS X, Windows, and many Unix flavours.

Important Links

185 questions
-1
votes
1 answer

Chicken Scheme.- How to convert a complex number (for ex: (sqrt 2) ) to an integer? Regardless of rounding strategy

I am working on a C extension for Chicken Scheme and have everything in place but I am running into an issue with complex number types. My code can only handle integers and when any math is done that involves say a square root my extension may end…
-1
votes
1 answer

Error: (/) bad argument type: # Chicken Scheme Square root approximation

I am following the SICP lectures from MIT, and this is what I tried to find the square root approximation of a number by Heron of Alexandria's method. This is my first time trying out lisp, sorry for making noobie mistakes. (define guess 1) (define…
twodee
  • 606
  • 5
  • 24
-1
votes
1 answer

string-substitute* not working

I am trying following code: (require-extension srfi-13) (require-extension regex) (print (string-substitute* "This is a test" '(("a test" . "NO TESTING ZONE" ) ) ) ) It works, with following output: This is NO TESTING ZONE But following does not…
rnso
  • 23,686
  • 25
  • 112
  • 234
-1
votes
2 answers

I'm new to scheme and I don't know what's wrong

I'm writing a function that takes a single list of knights that fight. The code running their fights is working(jousting-game), now I'm writing a tournament system and I can't get my tournament round to work. As I said, it takes a list of knights…
-4
votes
1 answer

Searching lists that contain lists or conses

Lets say that we got a list like this(with much more elements but the method should be the same): (define l '((cons 'name 'john) (cons 'sur 'asurname) (cons 'name 'george) (cons 'sur 'georgesurname))) and we can…
spk
  • 153
  • 9
1 2 3
12
13