Hi,

> +  (assert-error (alist-ref 'foo 'bar cmp))
> +  (assert-error (alist-ref 'foo '(bar) cmp)))

What's a good predicate to use to check whether what will be passed to
alist-ref will not throw an exception?

The 2nd assert-error rules out a simple list? or an O(1) algorithm.
(Tho' list? is already O(n)).





Regards,
@ndy

-- 
[email protected]
http://www.ashurst.eu.org/
0x7EBA75FF


_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to