Chart:...::Range(3pm)

πŸ“¦
version 2.90 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Chart::Clicker::Data::Range πŸ’–

okay bestie, so this is Chart::Clicker::Data::Range, a Perl module in the 3pm manual section, and it is literally just "a range of Data". That's the whole NAME vibe. Adding it to your use line is giving main character energy, no cap. πŸŽ€


✨ VERSION ✨

version 2.90 β€” that's the one, that's the era we're in. πŸ’…


🌸 SYNOPSIS 🌸

here's the little ritual you do to summon a Range into existence:

use Chart::Clicker::Data::Range;

my $range = Chart::Clicker::Data::Range->new({
  lower => 1,
  upper => 10
});

that's it. that's the whole thing. you hand it a lower and an upper and boom, you got a range, iconic. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Chart::Clicker::Data::Range implements a range of values. like, a range of them. from low to high. that's the job, and it does the job. periodt. πŸ’œ


πŸ‘‘ ATTRIBUTES πŸ‘‘

these are the lil settings you can set/get, aka the accessories of your Range. slay.

  • lower β€” Set/Get the lower bound for this Range. the floor, the basement, the "how low can you go" of it all. 🌸
  • max β€” Set/Get the maximum value allowed for this Range. > heads up bestie: this one should only be set if you want to EXPLICITLY set the upper value. don't just casually set it, it's a whole statement. πŸ’€
  • min β€” Set/Get the minimum value allowed for this Range. > and same energy here: only set this if you want to EXPLICITLY set the lower value. it's giving intent. πŸ’…
  • upper β€” Set/Get the upper bound for this Range. the ceiling, the roof, the "we don't go past this" energy. ✨
  • ticks β€” The number of ticks to be displayed for this range. lil marks, very cute, very decorative. πŸŽ€

πŸ”₯ METHODS πŸ”₯

the actual moves. here's where the range does range things. 🫢

🌈 add

Adds the specified range to this one. The lower is reduced to that of the provided one if it is lower, and the upper is ADDED to this range's upper. yes, ADDED. not replaced. read that again bestie, it's lowkey unhinged but it's the truth fr fr. 😭

🌈 combine

Combine this range with the specified one so that this range encompasses the values specified. For example, adding a range with an upper-lower of 1-10 with one of 5-20 will result in a combined range of 1-20. see? 1-10 🀝 5-20 β†’ 1-20. they're an us now. πŸ’–

🌈 contains ($value)

Returns true if supplied value falls within this range (inclusive). Otherwise returns false. inclusive is the key word here β€” the edges count, everyone's invited, no gatekeeping at the boundary. πŸŽ€

🌈 span

Returns the span of this range, or UPPER - LOWER. simple math, gorgeous result. ⭐


πŸ’œ AUTHOR πŸ’œ

Cory G Watson <gphat@cpan.org> β€” legend behavior, honestly. πŸ‘‘


This software is copyright (c) 2016 by Cory G Watson.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, share the love, just keep the terms. 🫢


and that's the whole page bestie β€” brought to you by perl v5.36.0, dated 2022-10-14, straight out of the Chart:...::Range(3pm) corner of the manual. go make some ranges, drink water, ily. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from