Feature Request: Symbol Reverse

Open
#40 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
backend

Research direction

The issue proposes a Reverse type class and two instances using Symbol.Cons and Symbol.Append, but names no files or tests. First read the repository’s existing type-level Symbol definitions and tests to find where a similar operation belongs. Done means the proposed reversal works for empty and non-empty Symbols and has coverage in the project’s tests.

Written by the indexing model from the issue text.

Description

type: enhancement
class Reverse (s :: Symbol) (r :: Symbol) | s -> r, r -> s
instance reverseNil :: Reverse "" ""
else instance reverseCons :: (Symbol.Cons h t s, Reverse t u, Symbol.Append u h r) => Reverse s r
Dominant language
PureScript
Stars
65
Forks
21
Avg merge
2d 23h
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-typelevel-prelude

All issues in purescript/purescript-typelevel-prelude

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.