Package grscheller.datastructures

Classes to implement algorithms, functional and imperative styles supported.

Expand source code
# Copyright 2023-2024 Geoffrey R. Scheller
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Classes to implement algorithms, functional and imperative styles supported."""

__version__ = "0.13.0"
__author__ = "Geoffrey R. Scheller"
__copyright__ = "Copyright (c) 2023-2024 Geoffrey R. Scheller"
__license__ = "Apache License 2.0"

from .arrays import PArray
from .queues import FIFOQueue, LIFOQueue, DoubleQueue
from .stacks import Stack, FStack
from .tuples import FTuple
from .core.fp import Maybe, Some, Nothing, Either, Left, Right
from .core.fp import maybeToEither, eitherToMaybe
from .core.iterlib import merge, exhaust

Sub-modules

grscheller.datastructures.arrays

Module grscheller.datastructure.arrays …

grscheller.datastructures.core

Package grscheller.datastructures.core …

grscheller.datastructures.queues

Module grscheller.datastructure.queues - queue based datastructures …

grscheller.datastructures.stacks

Module grscheller.datastructure.stacks - Stateful & Functional LIFO stacks: …

grscheller.datastructures.tuples

Module grscheller.datastructure.tuples - tuple-like data structures …