`1 2 3 implode (multiply) reduce` gives an internal error
I seem to have some sort of mental block that prevents me from remembering to give implode it's first argument and, well, the interpreter implodes. :)
<<<1 2 3 implode (multiply) reduce Sending to server.. Received response in 1329ms.
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
(no restarts: If you didn't do this on purpose, please report it as a bug.)
(SB-KERNEL:TWO-ARG-* NIL 2) 0] Timeout Error: Function took too long to complete.
I can explain the issue behind this.
When you run 1 2 3 implode, you get the list (2 1 nil). Then, when you reduce with multiply you end up trying to multiply 2 and nil. This dumps SBCL in to the debugger, it receives no input, and so it times out. The first issue is that it should error out and dump the error to the console.
The "real" issue is that this is not the correct behavior. If you ask for more items than exists, it should probably do something useful and just return as much of the stack as it can.