Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: [OT] Python to Perl.

by LanX (Saint)
on Jun 16, 2018 at 23:15 UTC ( [id://1216797]=note: print w/replies, xml ) Need Help??


in reply to Re^3: [OT] Python to Perl.
in thread [OT] Python to Perl.

IMHO the main advantage of these kind of ranges is that you can easily partition ranges in smaller ones:

[0..9[ = [0..3[ + [3..6[ + [6..9[ (pseudocode!)

This "scales" well (in a mathematical sense) without needing to add or subtract at the edges, hence less error prone.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found