[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stable-sort can't sort the empty list
From: |
westrick |
Subject: |
stable-sort can't sort the empty list |
Date: |
Fri, 14 Sep 2007 14:15:17 -0400 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.3) |
Hi,
Here is a bug in stable-sort (it can't sort the empty list):
guile> (stable-sort '() <)
Backtrace:
In standard input:
1: 0* [stable-sort {()} #<primitive-generic <>]
standard input:1:1: In procedure stable-sort in expression
(stable-sort (quote ()) <):
standard input:1:1: Wrong type argument in position 1: ()
ABORT: (wrong-type-arg)
sort is fine:
guile> (sort '() <)
()
Thanks,
Linda Westrick
- stable-sort can't sort the empty list,
westrick <=