network: Fix table->network.

This commit is contained in:
Sergiu Ivanov 2020-11-26 22:25:25 +01:00
parent a074258b1a
commit cdb2149358
1 changed files with 4 additions and 1 deletions

View File

@ -998,7 +998,10 @@
(table->function (for/list ([in st-ins] [o out])
(list in o)))))
;; Construct the network.
(network (map cons var-names funcs) (hash)))
(network (for/hash ([x (in-list var-names)]
[f (in-list funcs)])
(values x f))
(hash)))
(module+ test
(test-case "table->network"