14 karma · joined Jun 17, 2021 (5y ago) · 9 submissions
comment 11mo ago · link · parent
comment 4y ago · link · parent
There are curried forms of the operators that might make it easier to write functional code, like instead of `x -> x == "0"` you can write `==("0")`. Another useful thing is you can broadcast pipes, so instead of `x |> xs -> f.(xs)` or `x |> Map(f)`, you can write `x .|> f`.
It's funny that the first section is about everything loading as a matrix and not knowing the easy way to load things as a vector, I had the opposite problem and every problem that has a matrix I've ended up making a giant vector then reparsing the first line to figure out what dimensions to reshape it to. I'll have to try `readdlm`, I'm currently working through the older AoC years in Julia.
comment 5y ago · link · parent
It's here if anyone wants to play about with it. https://stellartux.github.io/websynth/
comment 5y ago · link · parent