It would be neat to be able to save various routines in text files and have cljck process them. The format should be simple data, and EDN seems an excellent fit. It would be simple if the format could be precisely the same as the internal format passed to the event-channel A script could then look as follows:
To fit as a single command, I imagine composite events like :repeat will be needed. Repeating stuff over and over again seems to be my primary use case, anyway. This brings the sum total of tasks in this issue to:
[x] Implement a :repeat event that has two function signatures: [& body] and [repetitions & body].
As suggested by @Mikkeren it seems simpler to introduce [:repeat n ...] to repeat the body of commands n times, and [:repeatedly ...] to just repeatedly run the body of commands with no termination.
It would be neat to be able to save various routines in text files and have cljck process them. The format should be simple data, and EDN seems an excellent fit. It would be simple if the format could be precisely the same as the internal format passed to the
event-channel
A script could then look as follows:To fit as a single command, I imagine composite events like
:repeat
will be needed. Repeating stuff over and over again seems to be my primary use case, anyway. This brings the sum total of tasks in this issue to::repeat
event that has two function signatures:[& body]
and[repetitions & body]
.