Fun One Liners

Cool idea. Here’s a fun one from my REPL session a couple of days ago:

using CSV, Glob

# Read and concatenate all tables in CSV files matching the given `pattern`
cat_csv(pattern) = vcat(CSV.read.(glob(pattern))...)

Broadcast is great for so many things which aren’t numbers.

11 Likes