formatting: simplify using assoc>map instead of unzip map map zip.

master
John Benediktsson 2020-03-24 11:13:55 -07:00
parent 5525313757
commit 497d6491e6
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ types = strings|numbers
lists = "[%" types ", %]" => [[ second '[ _ { } map-as ", " join "{ " " }" surround ] ]]
assocs = "[%" types ": %" types " %]" => [[ [ second ] [ fourth ] bi '[ unzip [ _ map ] dip _ map zip [ ":" join ] map ", " join "{ " prepend " }" append ] ]]
assocs = "[%" types ": %" types " %]" => [[ [ second ] [ fourth ] bi '[ [ _ _ bi* ":" glue ] { } assoc>map ", " join "{ " " }" surround ] ]]
formats = "%" (types|fmt-%|lists|assocs|unknown) => [[ second ]]