bigskysoftware / bigskysoftware/_hyperscript
Add "extend" to help putting multiple items from one list into another
- Lingua principale
- JavaScript
- Stelle
- 3.8k
- Fork
- 172
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In Python we have "list.extend(otherlist)" as a multi-item "append" basic function.
I found that this is a bit tedious in hyperscript (or of course I might be missing something). Especially if I'm parsing something where the result could be a non-list (which is also interesting in its own from a typing perspective that splitting an empty string results in a non-list):
```
```
I wish I could do this instead:
```
```
We could also consider whether "split by" should always return a list (I'm not quite sure what's going on there when `@data-assignees` is an empty value) but that's orthogonal to the extend ability.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
La issue non indica file né test; inizia tracciando la gestione esistente dell’assegnazione di liste, di append e di “split by” nell’implementazione di hyperscript. Il lavoro sarà completato quando la sintassi proposta `extend $assignees with ...` accetterà più elementi da un’altra lista, incluso il caso mostrato con un attributo data, e il comportamento con un valore vuoto sarà compreso o definito separatamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- web-dev
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 62/100