Skip to content

Add static members for F#+ generic operators #135

Description

@gusty

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions