From 6b7fc5f1a30003d7c9d9abd23ef3209c2f303b52 Mon Sep 17 00:00:00 2001 From: wes Date: Tue, 6 Dec 2016 23:03:18 -0500 Subject: [PATCH] remove the need for #\nul in the final result, add compress function to remove linear runs of characters and compress them into strings --- pftokenize.rkt | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/pftokenize.rkt b/pftokenize.rkt index 01f0256..dfaae20 100644 --- a/pftokenize.rkt +++ b/pftokenize.rkt @@ -31,14 +31,39 @@ [(list x) x] [_ (define ps (prefixes strs)) + (define sorted-ps (sort ps #:key car char