Escanea con tu iPhone para instalar
This shortcut reversed the values and keys but only works when you do not have duplicate values
Novedades
Versión 1.0
First release
Qué hace
14 acciones-
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
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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)
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de chefchip1965
También te puede gustar
Publicidad