Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Tree Structure Challenge

by GotToBTru (Prior)
on Nov 30, 2015 at 17:32 UTC ( #1148925=note: print w/replies, xml ) Need Help??

in reply to Re^2: Tree Structure Challenge
in thread Tree Structure Challenge

If diff needs to be based on Parent and get_leaves, I don't see how we can get around not writing those. So, we need to write the whole module.

What is the assumed output of the constructor?

Dum Spiro Spero

Replies are listed 'Best First'.
Re^4: Tree Structure Challenge
by choroba (Archbishop) on Nov 30, 2015 at 17:37 UTC
    There's no output. It just returns an object of the Zoo class that you can run get_leaves on, or use it as a parameter to diff.
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

      What does it do with the parameter? In other words, what would the returned object look like with differing values of input to the constructor?

      Dum Spiro Spero
        You don't know what the implementation is. It can do whatever it likes to be able to run get_leaves.
        ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1148925]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-08-19 05:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found