Statis...rState(3pm)
β¨ Statistics::R::IO::ParserState β the current state of the IO parser β¨
okay bestie, listen up π this is Statistics::R::IO::ParserState, a lil Perl module from the Statistics::R::IO family, and she is version 1.0002. She's the vibe-check keeper of where the parser is at, at any given moment. Very demure, very mindful, very immutable. π
π¦ SYNOPSIS π¦
use Statistics::R::IO::ParserState;
my $state = Statistics::R::IO::ParserState->new(
data => 'file.rds'
);
say $state->at
say $state->next->at;
πΈ DESCRIPTION πΈ
so like. you should not be out here creating instances of this class yourself, bestie, no cap π. She exists mainly to handle deserialization of R data files by the "IO" classes. She's the backstage crew, not the main character (even though she is giving main character energy, fr fr).
π METHODS π
π ACCESSORS π
dataβ an array reference to the data being parsed. The construct accepts a scalar, and that scalar gets split into individual characters. slay.positionβ where the next data element to be processed is sitting. her little cursor home. πatβ returns the element (byte) at the currentposition. it's giving "what's under the cursor rn".eofβ returns true if the cursor (position) is at the end of thedata. that's it, that's the whole vibe check. β¨singletonsβ an array reference where unserialized data that should exist as singletons can bestashedby the parser for later reference. little storage closet for special lil guys. πget_singleton $idβ returns the singleton data object with the given $id. go fetch, bestie.
π§ MUTATORS π§
"ParserState" is intended to be immutable, so the "mutator" methods actually return a new instance with appropriately modified values of the attributes. not me changing myself β I'm literally built different π she doesn't edit herself, she just drops a whole new version of herself. iconic.
nextβ returns a new ParserState instance withpositionadvanced by one. one step forward, no cap.add_singleton $singletonβ returns a new ParserState instance with the $singleton argument appended to the instance'ssingletons. adding to the collection, respectfully. π«Ά
π BUGS AND LIMITATIONS π
- Instances of this class are intended to be immutable. Please do not try to change their value or attributes. like... respect her boundaries, bestie. π«
- There are no known bugs in this module. Please see
Statistics::R::IOfor bug reporting. ngl a bug-free module is a rare and precious thing, we love to see it π₯
π SUPPORT π
See Statistics::R::IO for support and contact information. she's got people, iykyk. π
π AUTHOR π
Davor Cubranic <cubranic@stat.ubc.ca>
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2017 by University of British Columbia.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
and that's the whole page, bestie!! π this one was generated with perl v5.34.0 on 2022-02-10 β mwah, take care, stay immutable, and don't let anyone mutate your attributes. periodt. π β¨
π¦ where this page comes from
- debian bookworm: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- debian trixie: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu jammy: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu noble: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu resolute: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu stonking: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms