Escaneie com o iPhone para instalar
This shortcut reversed the values and keys but only works when you do not have duplicate values
Novidades
Versão 1.0
First release
O que ele faz
14 ações-
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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de chefchip1965
Você também pode gostar
Publicidade