Problem A split-string function seems to be missing in R7RS. I came up with the following implementation today: (define (split-string […]

# Tag: scheme

## Linear Peano multiplication in Scheme?

Problem I’ve been running through The Little Schemer, and have hit the example of Peano multiplication. The solution is given […]

## Sorting a list of numbers in increasing order

Problem Here’s a program I wrote to sort a list of numbers in increasing order (without using inbuilt sort function). […]

## Bash script that creates a local environment for CHICKEN scheme (like virtualenv for Python)

Problem Usage To create a localenv called sicp, do $ localenv sicp Activate the localenv: $ . sicp/bin/activate Check installed […]

## Iterative sum using recursion

Problem Given the following recursive definition of sum: (define (sum term a next b) (if (> a b) 0 (+ […]

## Why is this RC4 code in Racket so slow?

Problem According to shootout.alioth.debian.org, Racket is not much slower than C#, at least in the same order of magnitude due […]

## Scheme function to duplicate every element of a list a specified number of times

Problem This code takes a list and a integer and duplicates every element in the list the specified number of […]

## Simple evaluator of Scheme-like expressions in Haskell

Problem This is my first nontrivial Haskell program: module Main where import qualified Data.Map as Map type Env = Map.Map […]

## Reading/writing null-terminated strings from socket

Problem I need to handle C style (” delimited) strings from/to a socket and came up with this as a […]

## On Implementing a Lisp

Problem Background: This began with James Colgan‘s Lisp-Dojo for Ruby. My implementation can be found here. I then moved on […]

- 1
- 2