]> gitweb.factorcode.org Git - factor.git/blob - basis/compression/run-length/run-length.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / basis / compression / run-length / run-length.factor
1 ! Copyright (C) 2009 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: arrays grouping sequences ;
4 IN: compression.run-length
5
6 : run-length-uncompress8 ( byte-array -- byte-array' )
7     2 group [ first2 <array> ] map concat ;