From cfc217f39a5468c56e222dacf4b6ee2ebcedd08d Mon Sep 17 00:00:00 2001 From: Henrikh Kantuni Date: Sat, 11 Apr 2020 20:50:10 +0400 Subject: [PATCH] Update core-functions-in-depth.html --- content/cftbat/core-functions-in-depth.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/cftbat/core-functions-in-depth.html b/content/cftbat/core-functions-in-depth.html index 0eee3948..29da9b6b 100644 --- a/content/cftbat/core-functions-in-depth.html +++ b/content/cftbat/core-functions-in-depth.html @@ -742,7 +742,7 @@

A Vampire Data Analysis Program for the FWPD

rows)) -

In this function, map transforms each row—vectors like ["Bella Swan" 0]into a map by using reduce in a manner similar to the first example in “reduce” above. First, map creates a seq of key-value pairs like ([:name "Bella Swan"] [:glitter-index 0]). Then, reduce builds up a map by associating a vamp key with a converted vamp value into row-map. Here’s the first row mapified:

+

In this function, map transforms each row—vectors like ["Bella Swan" 0]into a map by using reduce in a manner similar to the first example in reduce above. First, map creates a seq of key-value pairs like ([:name "Bella Swan"] [:glitter-index 0]). Then, reduce builds up a map by associating a vamp key with a converted vamp value into row-map. Here’s the first row mapified:

(first (mapify (parse (slurp filename))))
 ; => {:glitter-index 10, :name "Edward Cullen"}