gorilla-repl icon indicating copy to clipboard operation
gorilla-repl copied to clipboard

multiple values are stored and reloaded

Open dtolpin opened this issue 9 years ago • 2 comments

When a segment produces multiple values, the values are consistently shown, stored, and reloaded. The patch detects when a value is added to the segment which already produced a value, and builds a list-like structure containing both values and rendered appropriately. This resolves issue #170.

dtolpin avatar May 18 '15 20:05 dtolpin

Thanks :-) I can't decide yet whether using the list-like construction is an elegant work of genius, or a bit of a hack! It's certainly a very neat and minimal way to solve the problem. I'll give it a bit more thought when I have some time to spend on Gorilla, and get this into the next release.

JonyEpsilon avatar May 20 '15 13:05 JonyEpsilon

Just to justify the list-like consturction: its just lisp's cons.

dtolpin avatar May 20 '15 13:05 dtolpin