Scan med din iPhone for at installere
This shortcut reversed the values and keys but only works when you do not have duplicate values
Nyheder
Version 1.0
First release
Hvad den gør
14 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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)
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra chefchip1965
Du vil måske også kunne lide
Annonce