Skip to content

Commit

Permalink
Turns out that listp doesn't actually ensure something is a list (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda authored Jan 6, 2021
1 parent 77a1d7b commit bdfc7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test-runner/astonish.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;;;; eventually being used to test for implementation in the test-suites

(defpackage astonish
(:use :cl)
(:use :cl :alexandria)
(:export :load-forms-from-file :select-conses :macroexpand-select))
(in-package :astonish)

Expand Down Expand Up @@ -36,7 +36,7 @@

(defun map-inodes (function form)
"Maps the given function over all the inner nodes of a tree"
(if (listp form)
(if (proper-list-p form)
(funcall function (mapcar (lambda (n) (map-inodes function n)) form))
form))

Expand Down

0 comments on commit bdfc7ea

Please sign in to comment.