fsprojects / fsprojects/FSharpx.Collections

Add static members for F#+ generic operators

Open
#135 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted 2.0
Dominant language
F#
Stars
253
Forks
76
Avg merge
49m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the LazyList implementation and its existing members and operators, then compare the required generic map signature in the linked F#+ abstraction documentation. Check the other collection types for the corresponding generic operations; done means the required static members and mentioned operators are available without adding a dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.