Add `STA.foreachWithIndex`

Open
#204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
43/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
backend

Research direction

Read the referenced purescript-st issue #39 and find the existing ST.foreach API in this repository. Determine how that API can support an indexed variant; done means STA.foreachWithIndex is available here and its behavior is covered by appropriate tests.

Written by the indexing model from the issue text.

Description

type: enhancement

See https://github.com/purescript/purescript-st/issues/39

We currently have ST.foreach (defined in purescript-st), but not ST.foreachWithIndex. To add this functionality in st, we would need to use FFI. If we define it in this repo, we can reuse existing API.

Dominant language
PureScript
Stars
58
Forks
70
Avg merge
2d 22h
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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.

More from purescript/purescript-arrays

All issues in purescript/purescript-arrays

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.