Skip to content

6 factor out monadic functionality#17

Open
profbrandon wants to merge 15 commits intomainfrom
6-factor-out-monadic-functionality
Open

6 factor out monadic functionality#17
profbrandon wants to merge 15 commits intomainfrom
6-factor-out-monadic-functionality

Conversation

@profbrandon
Copy link
Copy Markdown
Owner

This PR does only a few things, but it rewrites a ton of lines. Specifically, it...

  • Creates a 'library system' in which library objects are not present in the global environment.
  • Refactors monadic behavior into the 'monad' library.
  • Adds the 'fun' and 'comonad' libraries.
  • Adds the 'lazy' library.

… removes libraries from the global scope. This means that library objects can only be accessed from within the scope of the 'createLib' callback function 'libraryFunction'.
…rary management system. Adds 'seqF' to monadFail, which makes the 0-arity sequence function return the zero of the monad.
…ibrary management structure. Reorganizes each of the files.
…r of kleisli arrows. Deletes an unnecessary parenthesis in comonad.js.
@profbrandon profbrandon linked an issue Mar 28, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Func File

1 participant