method STORE

Documentation for method STORE assembled from the following types:

language documentation Subscripts

From Subscripts

(Subscripts) method STORE

method STORE (::?CLASS:D: \values:$initialize)

This method should only be supplied if you want to support the:

    my @a is Foo = 1,2,3;

syntax for binding your implementation of the Positional role.

Should accept the values to (re-)initialize the object with. The optional named parameter will contain a True value when the method is called on the object for the first time. Should return the invocant.

language documentation Subscripts

From Subscripts

(Subscripts) method STORE

method STORE (::?CLASS:D: \values:$initialize)

This method should only be supplied if you want to support the:

    my %h is Foo = => 42=> 666;

syntax for binding your implementation of the Associative role.

Should accept the values to (re-)initialize the object with, which either could consist of Pairs, or separate key/value pairs. The optional named parameter will contain a True value when the method is called on the object for the first time. Should return the invocant.

role Positional

From Positional

(Positional) method STORE

method STORE(\values:$initialize)

This method should only be supplied if you want to support the:

    my @a is Foo = 1,2,3;

syntax for binding your implementation of the Positional role.

Should accept the values to (re-)initialize the object with. The optional named parameter will contain a True value when the method is called on the object for the first time. Should return the invocant.

role Associative

From Associative

(Associative) method STORE

method STORE(\values:$initialize)

This method should only be supplied if you want to support the:

    my %h is Foo = => 42=> 666;

syntax for binding your implementation of the Associative role.

Should accept the values to (re-)initialize the object with, which either could consist of Pairs, or separate key/value pairs. The optional named parameter will contain a True value when the method is called on the object for the first time. Should return the invocant.