[Jprogramming] "Limited" Permutations

Devon McCormick devonmcc at gmail.com
Thu Jun 21 23:32:49 HKT 2012


The inverse of "compress" is "expand":

   1 1 0 1 # 'help'
hep
   1 1 0 1 #^:_1 ] 'hep'
he p

It's not a true inverse as it cannot restore lost information so puts
the (type-appropriate) fill character in the expansion places.

On Thu, Jun 21, 2012 at 11:27 AM, David Vaughan <purpleblues13 at gmail.com> wrote:
> Thanks, this seems to work, however I am a little confused about what #inv
> (#^:_1) actually does - could you explain that please?

-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail


More information about the Programming mailing list