From a0b4d1eafa4312b5970f7268441d848be5231e7b Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 4 Aug 2008 15:41:33 +0200 Subject: Denullify elements when turning an NSArray into a list. --- MLKCons.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MLKCons.m b/MLKCons.m index 469275b..08c941a 100644 --- a/MLKCons.m +++ b/MLKCons.m @@ -52,11 +52,11 @@ id item = [array objectAtIndex:i]; if (!tail) { - cons = tail = [MLKCons cons:item with:nil]; + cons = tail = [MLKCons cons:denullify(item) with:nil]; } else { - [tail setCdr:[MLKCons cons:item with:nil]]; + [tail setCdr:[MLKCons cons:denullify(item) with:nil]]; tail = [tail cdr]; } } -- cgit v1.2.3