Metaprogramming with list comprehensions

rokke
Mon, 16 Jun 2025 21:50:02 +0000
General Usage

I feel like I’m always writing [foo(a,b,c) for a, b, c in 1:n] when I mean [foo(a,b,c) for a in 1:n, b in 1:n, c in 1:n], so I’d like to add something to my startup.jl to make it so.

I feel like I’ve seen conflicting information about the ease / feasibility of things like this, so figured before I get too deep I’d ask for resources / suggestions over here

12 posts - 4 participants