Description text of `difference`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 55/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Ambito
- documentation
Direzione di ricerca
Read the difference documentation linked in the issue and compare its wording with the provided example. Clarify that each element in the second array is matched and removed from the first array from left to right; done when the description explains why the result is [1].
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Example:
difference [2, 1, 2] [2, 2, 3] == [1]
https://pursuit.purescript.org/packages/purescript-arrays/7.3.0/docs/Data.Array#v:difference
Delete the first occurrence of each element in the second array from the first array, creating a new array.
I read the description as follows:
- each element in the second array: 2, 2, 3
- first occurrence of each element in the second array: 2, 3
- delete [2,3] from the first array: [2,1,2] ---> deleting [2,3] ---> [1,2]
This would be a clearer description of what this function does:
For each element in the second array, find an occurrence from left to right in the first array and remove it when found.
I think the word "first" should be avoided, because in the example above then second 2 from [2,2,3] is matched against the second 2 from [2,1,2].
- Lingua principale
- PureScript
- Stelle
- 58
- Fork
- 70
- Merge medio
- 2g 22h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di purescript/purescript-arrays
-
generate functionAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
purescript/purescript-arrays#244 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
purescript/purescript-arrays#242 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
purescript/purescript-arrays#241 ·
-
`groupBy` has unexpected `l` argument for `a -> a -> Boolean` predicateForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
purescript/purescript-arrays#229 · 3 commenti ·
-
type: enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
purescript/purescript-arrays#215 · 3 commenti ·
Tutte le issue di purescript/purescript-arrays
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
MetrolistGroup/Metrolist#4554 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
kubescape/node-agent#1099 ·
I maintainer di solito rispondono entro 1 giorno
-
15.0
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
[workshop-sim] Improve: Provide a concrete example and activity checks in agentic intro (step 5)Apertafeedback simulation workshop
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
githubnext/gh-aw-workshop#5715 ·
I maintainer di solito rispondono entro 1 giorno