Advertisement
Guest User

Untitled

a guest
May 5th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # The MIT License (MIT)
  2. # Copyright (c) 2016 thewizardplusplus <thewizardplusplus@yandex.ru>
  3.  
  4. to_entries
  5. | map_values(. + {"length": .value | length | (. * -1)})
  6. | sort_by(.length)
  7. | from_entries
  8. | map_values(sort)
  9. | map_values(if (. | length) > 1 then . else .[0] end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement