Lucy::...version(3pm)
π 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 initialTokento start things off, which may beundef. 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β aToken.
π 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 aseedthat'sundef, 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
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms