Skip to content

Instantly share code, notes, and snippets.

View bon's full-sized avatar

Breanndán Ó Nualláin bon

  • Amsterdam
  • 01:27 (UTC +02:00)
View GitHub Profile
@bon
bon / coalton-test.lisp
Created January 26, 2022 14:41
Coalton tests using fiasco
(ql:quickload '(:coalton :fiasco))
(defpackage :coalton-derivative
(:use :coalton :coalton-library))
(in-package :coalton-derivative)
(coalton-toplevel
(define-type Symbol
(Symbol String))
@bon
bon / recursive.rkt
Created January 3, 2017 15:24
Raganwald's recursive data structures.
#lang racket
;; Raganwald's recursive data structures.
;; http://raganwald.com/2016/12/27/recursive-data-structures.html
(require racket/list)
(define (merge1 lists)
(cond ((or (empty? (first lists))
(empty? (second lists)))