2009-06-03 00:29:04 -04:00
|
|
|
! Copyright (C) 2009 Doug Coleman.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2009-06-09 11:52:14 -04:00
|
|
|
USING: accessors arrays combinators grouping kernel locals math
|
|
|
|
math.matrices math.order multiline sequence-parser sequences
|
|
|
|
tools.continuations ;
|
2009-06-03 00:29:04 -04:00
|
|
|
IN: compression.run-length
|
|
|
|
|
2009-06-09 11:52:14 -04:00
|
|
|
|
2009-06-03 22:22:19 -04:00
|
|
|
: run-length-uncompress ( byte-array -- byte-array' )
|
2009-06-09 11:52:14 -04:00
|
|
|
2 group [ first2 <array> ] map B{ } concat-as ;
|
|
|
|
|