GIT MESSAGE CORRECTION: recently added argument is :closes, not :close
This commit is contained in:
parent
e6361ec1c0
commit
971f10941e
@ -51,7 +51,7 @@
|
|||||||
"Returns a random instruction from a supplied pool of instructions, evaluating
|
"Returns a random instruction from a supplied pool of instructions, evaluating
|
||||||
ERC-producing functions to a constant literal."
|
ERC-producing functions to a constant literal."
|
||||||
[instructions argmap]
|
[instructions argmap]
|
||||||
(case (or (:closes argmap) :specified)
|
(case (or (:closes argmap) :specified)
|
||||||
:specified (let [instruction (rand-nth instructions)]
|
:specified (let [instruction (rand-nth instructions)]
|
||||||
(if (fn? instruction)
|
(if (fn? instruction)
|
||||||
(instruction)
|
(instruction)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user