Skip to content

Instantly share code, notes, and snippets.

@Konstantinusz
Created September 7, 2020 09:59
Show Gist options
  • Save Konstantinusz/0f49bf321bae3299c5c0fdce1705e8d5 to your computer and use it in GitHub Desktop.
Save Konstantinusz/0f49bf321bae3299c5c0fdce1705e8d5 to your computer and use it in GitHub Desktop.
Redundancia csökkentése
nevnapok=nevnapok.map{|k,v| [k,v["t"] ? {"t"=>v["t"]} : {"n"=>v["n"],"s"=>v["s"]}]}.sort_by{|k,v| k.unicode_normalize(:nfd)}.to_h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment