Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Comparing and Aligning arrays

by ww (Bishop)
on Apr 04, 2014 at 00:40 UTC ( #1081047=note: print w/replies, xml ) Need Help??


in reply to Comparing and Aligning arrays

I can see (I think) how you transform

a a b
to
a a -
and
a a b b b c

to
b b b
and
b b c c d d

to - d d
but the rule I intuit for those doesn't work for the transformation of
b b c c d d

to
c - c

CODE TAGS...

<c> ... data here
(even multiline data)... </c>
might help us to understand how you get from the source of the list to the output; that is, by what rule(s) are you doing the tranformations?

or is it just too late in the evening for me to understand?


Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081047]
help
Chatterbox?
[Your Mother]: I assume you should be ordering online so you don't have to deal with service people. :P

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-03-26 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.