Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: Find range in coordinates array (updated)

by IB2017 (Pilgrim)
on Oct 01, 2019 at 20:40 UTC ( [id://11106924]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Find range in coordinates array
in thread Find range in array with indices

I had a closer look at your code. Even if there are some aspects I still do not quite understand, I can confirm that it works brilliantly, even better than I first thought. I have tested it with real (a lot of) data. Simply perfect.

Replies are listed 'Best First'.
Re^5: Find range in coordinates array
by haukex (Archbishop) on Oct 02, 2019 at 08:16 UTC

    Glad to help, and please feel free to ask :-) You can add the same debugging statements as in my first piece of code (at the bottom of the post), then you can hopefully see how everything is being transformed. If I were to nitpick my own code, I would probably add some checking that all the inputs are in the expected formats (e.g. use a regex instead of split). And the updated piece of code depends on the original array not changing, since it creates a second list of indicies.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-29 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found