SPVM::Comparable(3)

πŸ“¦ version 0.990125, in alpine 3.24

πŸ’– SPVM::Comparable(3) πŸ’–

okay so bestie, welcome to the manual page for SPVM::Comparable(3) β€” that's the manual name, right up top where you need it. It's a User Contributed Perl Documentation moment, and it's literally an interface page. main character energy only. πŸ’…

🌸 NAME 🌸

SPVM::Comparable - Comparable Interface

πŸ¦‹ DESCRIPTION πŸ¦‹

The Comparable interface in SPVM has interface methods to compare two objects. That's the whole vibe check: two objects, getting compared. no cap. ✨

🌈 USAGE 🌈

interface Comparable;

πŸŽ€ INTERFACE METHODS πŸŽ€

  • "required method cmp : int ($a : object, $b : object);" β€” this is an interface method to compare two objects. it's required, and it's giving cmp energy. 🫢
    • If $a is greater than $b, returns a positive value.
    • If $a is equal to $b, returns 0.
    • If $a is less than $b, returns a negative value.

Copyright (c) 2024 Yuki Kimoto

MIT License


mwah πŸ’‹ β€” this page is from perl v5.42.2, dated 2026-02-03, and it's SPVM::Comparable(3). bye bestie, go compare some objects responsibly! 🫢

πŸ“¦ where this page comes from