Scanne avec ton iPhone pour installer
This shortcut reversed the values and keys but only works when you do not have duplicate values
Nouveautés
Version 1.0
First release
Ce qu’il fait
14 actions-
CommentThis will only work if there are no duplicate values or keys
-
Dictionary
-
Set VariableD
-
Get Variable
-
Get Dictionary Value
-
Repeat with Each
-
Get Variable
-
Get Dictionary Value
-
Text
-
Add to Variable
-
Get Variable
-
Combine Text
-
Text
-
Get Dictionary from Input
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#define color lightblue
#define glyph magicWand
// This will only work if there are no duplicate values or keys
@D = {
"1": "2",
"3": "4",
"5": "6"
}
// TODO: Get Variable not supported: Assign variable here to '@D'.
getValues({})
for _ in nil {
// TODO: Get Variable not supported: Assign variable here to '@D'.
@ReverseD += "\\"{}\\":\\"{@RepeatItem}\"
}
// TODO: Get Variable not supported: Assign variable here to '@ReverseD'.
joinText(nil, ",")
getDictionary(nil)
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de chefchip1965
Ça pourrait aussi te plaire
Publicité