Fork me on GitHub
#off-topic
<
2022-02-21
>
orestis07:02:52

You could produce a visualization/ascii table from the case map. This, combined with exhaustiveness checking as described could tick both your boxes. Plus writing an ascii table generation is much simpler than parsing one…

Benjamin08:02:05

I'd like to pretty print a table to this markdown format

| Item         | Price    | # In stock |
|--------------|----------|------------|
| Juicy Apples | 1.99     | 7          |
| Bananas      | 1.89     | 5234       |
how would you do it?

Benjamin08:02:27

Seems like this only difference with pp/print-table is the "|" instead of the "+" where 2 lines meet

Benjamin08:02:40

(str/replace pp-output-str #"-\+-" "-|-") does the job, whatever 😛

Matej Šarlija19:02:11

related, is there a way on Slack to send these kinds of threads to myself or save for later? like a reddit remind-me-in-x-time bot

walterl01:02:18

@U032F2KKD3R When you hover over a message, the middle of the 3 buttons on the right (a bookmark icon) is to Add to saved items. You can access those under Saved items at the top of your sidebar on the left.

👍 1