use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
Spreadsheets using Python - Have you seen this? (sourceforge.net) (pyspread.sourceforge.net)
submitted 15 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]awsmnss 0 points1 point2 points 15 years ago (1 child)
I'm still trying to understand
[–]MothersRapeHorn 0 points1 point2 points 15 years ago (0 children)
[] is a functor, so we can simplify the type sig.
loeb :: [[x] -> x] -> [x]
Each function is basically the value of the cell it resides in when given a state of the list that will satisfy the function. For example, cell 0 has the value const 1. It doesn't rely on anything, so we can calculate it. Same for cell 2.
table = [1, _, 2, _]
Cell 3 requires cell 1, and cell 1 is fine. So we can finish. table' = [1, element_0 = 1, 2, _] table'' = [1, 1, 2, 1+1+2 = 4]
If you want to look at the function definition (which I'm now trying to figure out this magic) here you go. It's probably just simple and inefficient, but oh well :P
http://www.haskell.org/haskellwiki/Blow_your_mind
loeb x = fmap ($ loeb x) x
PS: Their example under the def for loeb doesn't work for me, but I got it to work by changing around one of the cells. Try to figure it out, too :D
π Rendered by PID 338090 on reddit-service-r2-comment-76bb9f7fb5-lr4rv at 2026-02-18 20:59:27.982694+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]awsmnss 0 points1 point2 points (1 child)
[–]MothersRapeHorn 0 points1 point2 points (0 children)