SPVM::Countable(3)

πŸ“¦ version 0.990125, in alpine 3.24

πŸŽ€ Name πŸŽ€

Okay so welcome to the SPVM::Countable(3) manual page, bestie β€” this is the User Contributed Perl Documentation moment, and the manual name is SPVM::Countable: the Countable Interface πŸ’–

✨ Usage ✨

Here's the exact usage snippet, character for character β€” do not come for me:

class Point {
  interface Countable;

  has elements : int[]

  method length : string () {

    my $length = @{$self->{elements}};

    return $length;
  };
}

πŸ’« Description πŸ’«

So Countable in SPVM is the interface for countable classes. That's the vibe, periodt. πŸ’…

🌸 Interface Methods 🌸

πŸ¦‹ to_string πŸ¦‹

The required method signature is literally:

"required method length : int ();"

It's meant to return the length of the elements. 🫢

Copyright (c) 2023 Yuki Kimoto

MIT License


SPVM::Countable(3) was brought to you by perl v5.42.2, dated 2026-02-03 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from