Functional::Stack

Functional Stack

NAME

Functional::Stack - Functional Stack

SYNOPSIS

use Functional::Stack;
Functional::Stack.mutate: {
   for ^10 -> $value { say .push: $value }
   say .peek;
   say .pop while .elems;
}

DESCRIPTION

Functional::Stack is a implementation of a functional data structure stack. It's immutable and thread-safe.

It has a mutate method that topicalise the object and will always topicalise the new generated stack. And that's gives the impression of mutating and makes it easier to interact with those objects.

AUTHOR

Fernando CorrĂȘa de Oliveira [email protected]

COPYRIGHT AND LICENSE

Copyright 2024 Fernando CorrĂȘa de Oliveira

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Functional::Stack v0.0.1

Functional Stack

Authors

  • Fernando CorrĂȘa de Oliveira

License

Artistic-2.0

Dependencies

ValueClassFunctional::LinkedList

Test Dependencies

Provides

  • Functional::Stack

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.