mruby/mruby — pull request #1187 by h2so5 (2013-04-17 14:02:32+00:00)
Title: Add mruby-proc-ext

Added the following methods:
- Proc#===
- Proc#yield
- Proc#to_proc
- Proc#curry (based on https://github.com/mruby/mruby/pull/1183#issuecomment-16430685)
- Proc#lambda?
- Proc#source_location
- Proc#to_s
- Proc#inspect
- Kernel#proc
- Kernel.proc

```bash
$ bin/mirb
mirb - Embeddable Interactive Ruby Shell

This is a very early version, please test and report errors.
Thanks :)

> a = proc {|x,y,z| x+y+z}
=> #
> c = a.curry(3)
=> #
> c[5][6]
=> #
> c[5][6][7]
=> 18
> c.lambda?
=> false
> lambda {|a|}.lambda?
=> true
> lambda {|a|}.curry(2)
ArgumentError: wrong number of arguments (2 for 1)
>

$ echo "p proc {}.source_location" > test.rb
$ bin/mruby test.rb
["test.rb", 1]
```