Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

More thorough extension of built-in types #52

Open
1 of 4 tasks
ghost opened this issue Jul 7, 2015 · 2 comments
Open
1 of 4 tasks

More thorough extension of built-in types #52

ghost opened this issue Jul 7, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 7, 2015

  • Ranges
  • Sorted hashes and sets
  • All list types
  • IFn
@ghost ghost added the contributor friendly label Aug 18, 2015
@tcsavage
Copy link
Contributor

tcsavage commented Oct 5, 2015

I'm happy to implement extensions for IFn since I need it for another project, but there are two possible monoid instances:

  • mappend = comp and mempty = identity
  • mappend = (fn [f g] (fn [x] (mappend (f x) (g x)))) and mempty = (constantly (mempty))

As you may already be aware, the latter is Haskell's implementation (the other being defined for the Endo newtype), and it's also the one I've had the most use for personally. But which is preferable for this library specifically?

@yurrriq
Copy link
Collaborator

yurrriq commented Oct 24, 2015

Related: #116

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants