Former political scientist, sometimes bike rider.
Long form mikedecr.computer
We like functions right? Would we still like functions if they were **evil**?
mikedecr.computer/blog/r-hy/
We like functions right? Would we still like functions if they were **evil**?
mikedecr.computer/blog/r-hy/
github.com/mikedecr/aoc...
github.com/mikedecr/aoc...
Basically, exploring how to make pipeline-style R code more re-usable and composable by abusing partial function application
Basically, exploring how to make pipeline-style R code more re-usable and composable by abusing partial function application
Instead of passing data up front, you define pipeline steps without reference to the data. You get reusable + composable pipeline steps w/out as much function boilerplate
Instead of passing data up front, you define pipeline steps without reference to the data. You get reusable + composable pipeline steps w/out as much function boilerplate
- I am now running main() using typer, which lets me easily pass CLI args. This is very convenient for activating "debug" mode
- I am now running main() using typer, which lets me easily pass CLI args. This is very convenient for activating "debug" mode
- colors were random which was confusing. I didn't expand it to full colors but did add some classics: I=blue, O=gray, T=yellow
- pieces were rotating counter-clockwise-only so that had to get fixed
- colors were random which was confusing. I didn't expand it to full colors but did add some classics: I=blue, O=gray, T=yellow
- pieces were rotating counter-clockwise-only so that had to get fixed
github.com/mikedecr/twe...
github.com/mikedecr/twe...
I am being too strict about it...function defs aren't even allowed, only lambdas, so the type hints are trying to make it interpretable but now it look messy.
Some of my worst filth yet!
I am being too strict about it...function defs aren't even allowed, only lambdas, so the type hints are trying to make it interpretable but now it look messy.
Some of my worst filth yet!