drive.google.com/file/d/1udxh...
drive.google.com/file/d/1udxh...
original algorithm is from Wikipedia (for 2D, in C)
image: magnified image output, (0, 0) to (10, 5)
original algorithm is from Wikipedia (for 2D, in C)
image: magnified image output, (0, 0) to (10, 5)
1. use a writer monad
2. build it in the reverse order, and then reverse it back
3. instead of using a list as an accumulator, use a function of type (a -> [a]) as the accumulator.
1. use a writer monad
2. build it in the reverse order, and then reverse it back
3. instead of using a list as an accumulator, use a function of type (a -> [a]) as the accumulator.
(but you could hack it using case () of _ | condition1 -> expression1; _ | condition2 -> expression2; ...)
(but you could hack it using case () of _ | condition1 -> expression1; _ | condition2 -> expression2; ...)
indexing is to logarithms as functions are to exponentials
indexing is to logarithms as functions are to exponentials
amazing
amazing
when Twan van Laarhoven was 22, he published in a blog post an innovation that would be later named after himself ... van Laarhoven lenses
also, scary to think that he's nearly 40 now
time flies like a banana
fruit flies like an arrow
when Twan van Laarhoven was 22, he published in a blog post an innovation that would be later named after himself ... van Laarhoven lenses
also, scary to think that he's nearly 40 now
time flies like a banana
fruit flies like an arrow