Manpage logo

SPVM::Countable - Countable Interface

Name  Usage  Description  Interface Methods  to_string  Copyright & License 

Name

SPVM::Countable − Countable Interface

Usage

class Point {
interface Countable;
has elements : int[]
method length : string () {
my $length = @{$self−>{elements}};
return $length;
};
}

Description

Countable interface in SPVM is the interface for countable classes.

Interface Methods

to_string

"required method length : int ();"

Meants to return the lenght of the elements.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License


Updated 2026-06-01 - jenkler.se | uex.se