Lucy::...version(3pm)

πŸ“¦
version 0.6.2 Β· 2 versions
, in fedora 43

πŸ’– Lucy::...version(3pm) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation page for this lil module, and honestly? it's giving very demure, very mindful, very "a bunch of tokens in a trench coat". let's get into it 🫢


✨ NAME ✨

Lucy::Analysis::Inversion β€” a whole collection of Tokens. that's it, that's the vibe. a little token party πŸŽ€


🌸 SYNOPSIS 🌸

here's the whole thing in action, no cap:

my $result = Lucy::Analysis::Inversion->new;

while (my $token = $inversion->next) {
    $result->append($token);
}

look at that little loop go. iconic behaviour. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so an Inversion is literally just a collection of Token objects β€” you can add stuff to it, and then you can iterate over it. that's the entire personality. lowkey obsessed with how simple that is. ✨


πŸŽ€ CONSTRUCTORS πŸŽ€

πŸ’œ new

my $inversion = Lucy::Analysis::Inversion->new(
    $seed,  # optional
);

creates a brand new Inversion, fresh out the box, main character energy from day one πŸ‘‘

  • seed β€” an initial Token to start things off, which may be undef. yes bestie, you can pass nothing and it still slays.

πŸ”₯ METHODS πŸ”₯

⭐ append

$inversion->append($token);

tacks a token onto the end of the Inversion. like adding a new member to the group chat πŸ’Œ

  • token β€” a Token.

🌈 next

my $token = $inversion->next();

returns the next token in the Inversion, and keeps doing that until you're out of tokens. when it runs dry? that's it, that's the end of the era 😭

🧚 reset

$inversion->reset();

resets the Inversion's iterator, so that the next call to next() returns the first Token in the inversion. it's giving "rewind, we're doing this again" πŸ”


πŸ‘‘ INHERITANCE πŸ‘‘

Lucy::Analysis::Inversion isa Clownfish::Obj. so yeah, it's got ancestors. generational, fr fr πŸ’€


πŸ’€ heads up: if you pass a seed that's undef, that's totally fine β€” it's marked optional, no drama, we don't gatekeep.

k that's the whole page, bestie!! this was generated as part of perl v5.42.0 on 2025-07-25, and it's still filed under Lucy::...version(3pm) if you ever need to find it again. mwah, go forth and iterate πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from