Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add static members for F#+ generic operators #135

Open
gusty opened this issue Aug 2, 2019 · 1 comment
Open

Add static members for F#+ generic operators #135

gusty opened this issue Aug 2, 2019 · 1 comment

Comments

@gusty
Copy link
Member

gusty commented Aug 2, 2019

Description

This library seems to be easy to integrate with F#+ we just need to add the required static members, no need to add any dependency.

Repro steps

For example, looking at the required signature for map in order to be able to use a generic map over a Lazy List, we just need to add:

 static member Map (x: LazyList<'T>, f:'T->'U) : LazyList<'U> = LazyList.map f x

then, we can add an attribute to "hide" it from the tooling.

We can also add <*> and >>= which are not yet implemented.

Doing this for most collections will provide a way to use generic operations over these collections, also a way to derive automatically computation expressions.

@jackfoxy
Copy link
Contributor

@gusty sorry for long silence. I think github forgot to notify me.
This seems like a good feature.
I'm happy to consider a PR.
Tests appreciated.

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

No branches or pull requests

2 participants