While I was wandering around Proc and Lambda in Ruby, I found very useful method Proc#curry. This method answer the question that bugs me for a while, is there an easy way to make Curry happen in Ruby? Let look at the example how to use it.
Start with a simple method:
Manually currying: But with Proc#curry, you can heavily simplify your code like this:
Pretty neat!
Showing posts with label Proc. Show all posts
Showing posts with label Proc. Show all posts
Tuesday, June 26, 2012
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
Put your cursor on the text box of the post/comment you want to indent Go to the menubar at the top of the screen Edit > Emoji & ...
-
This error occurs when you or some of your vim plugins try to access register '*' which is a system clipboard. In default Mac OSX vi...