ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2022 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P79

Description

Some solutions to Problems.P79 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

calculatePostfix :: [Element] -> (Maybe Integer, [([Integer], Maybe Operator)]) Source #

Use monad transformers to evaluate postfix notation.

Returns Nothing when there is an error. Also returns the history of the evaluation.