jfmengels/elm-review-simplify

String.join / String.concat with a single element

Open

#336 aperta il 18 gen 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Elm (10 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (22 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

What the rule should do: String.join "foo" [ a ] => a String.concat [ a ] => a

Example of things the rule would not report:

String.join "foo" [ "bar", "baz" ]
String.concat [ "bar", "baz" ]

Should this be part of the Simplify rule or should it be a new rule? Part of Simplify

I am looking for:

  • Someone to implement it with/for me

Guida contributor