Differences

This shows you the differences between two versions of the page.

assignment-1 [2016/08/26 03:07]
jhemann
assignment-1 [2017/01/30 10:31] (current)
jhemann
Line 230: Line 230:
  * ''cartesian-product-fr''   * ''cartesian-product-fr''
-There are //stunningly// beautiful definitions of the last two examples. They're just mind-blowing. And to tease you further, know that some (pretty clever, albeit) folk solved this almost **50** years ago, back when lexical scope wasn't a thing, higher-order functions weren't commonplace like they are today, and many of the common programming idioms and that we take for granted just weren't around. Since I hate to pass up an excuse to show off something cool, I gotta tell you about the derivation and explanation of the last couple of answers [[http://ojs.statsbiblioteket.dk/index.php/brics/article/download/21934/19359|here]], but you have to promise (1) you'll try it first on your own, and (2) that if you peek at the answers, you'll read the whole thing. It's short, moves quickly, and very high enlightenment/text ratio. That's my sales pitch.+If you would like, I can recommend a [[http://eprints.nottingham.ac.uk/224/1/fold.pdf|treatise on fold operators containing answers to several of the above sub-problems]]. It will also teach you about programming with ''foldr''. There are //stunningly// beautiful definitions of the last two sub-problems. They're just mind-blowing. And to tease you further, know that some (pretty clever, albeit) folk solved this almost **50** years ago, back when lexical scope wasn't a thing, higher-order functions weren't commonplace like they are today, and many of the common programming idioms and that we take for granted just weren't around. Since I hate to pass up an excuse to show off something cool, I gotta tell you about the derivation and explanation of the last couple of answers [[http://ojs.statsbiblioteket.dk/index.php/brics/article/download/21934/19359|here]], but you have to promise (1) you'll try it first on your own, and (2) that if you peek at the answers, you'll read the whole thing. It's short, moves quickly, and very high enlightenment/text ratio. That's my sales pitch.
 

assignment-1.txt · Last modified: 2017/01/30 10:31 by jhemann