Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I want to code in Scheme

Name: Anonymous 2013-03-21 17:48

But I don't really know how to write idiomatic code. Is anyone here willing to rewrite some of my python code, so I can see how it's done?

Also, what is the code-tag on this board?

Name: Anonymous 2013-03-26 14:12

prod=foldr(\x->((:)<$>x<*>))[[]]

*Main> prod [[1,2,3],[4,5],[6,7,8]]
[[1,4,6],[1,4,7],[1,4,8],[1,5,6],[1,5,7],[1,5,8],[2,4,6],[2,4,7],[2,4,8],[2,5,6],[2,5,7],[2,5,8],[3,4,6],[3,4,7],[3,4,8],[3,5,6],[3,5,7],[3,5,8]]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List