network: Fix table->network.
This commit is contained in:
parent
a074258b1a
commit
cdb2149358
1 changed files with 4 additions and 1 deletions
|
@ -998,7 +998,10 @@
|
||||||
(table->function (for/list ([in st-ins] [o out])
|
(table->function (for/list ([in st-ins] [o out])
|
||||||
(list in o)))))
|
(list in o)))))
|
||||||
;; Construct the network.
|
;; 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
|
(module+ test
|
||||||
(test-case "table->network"
|
(test-case "table->network"
|
||||||
|
|
Loading…
Reference in a new issue