Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

post you are run length encoding in lisp

Name: Anonymous 2014-10-05 3:18

critique mine pl0x:

(defun rle (str) ;run length encoding
(let ((i 0) c count out)
(while (< i (length str))
(if (eq c (elt str i))
(setq count (1+ count))
(when c
(setq out (append out (list (cons c count)))))
(setq c (elt str i))
(setq count 1))
(setq i (1+ i)))
(when c (setq out (append out (list (cons c count)))))
out))

Name: L. A. Calculus !jYCj6s4P.g 2014-10-11 20:26

N LAST I CHEKKED COMPRESSION ALGORITHMS WERE SUPPOSED 2 MAKE THINGS SMALLER, NOT LARGER. DA OUTPUT OF UR PROGRAM IS NEARLY TWICE DA SIZE OF DA INPUT WEN RUN ON UR SOURCE FILE.

EEEEH EEEEEH EEEEEH EEEEEH!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List