- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-proc-ext/mrblib/proc.rb
r321 r439 28 28 pproc = self 29 29 make_curry = proc do |given_args=[]| 30 send(type) do |*args|30 __send__(type) do |*args| 31 31 new_args = given_args + args 32 32 if new_args.size >= arity … … 40 40 end 41 41 42 def <<(other) 43 ->(*args, &block) { call(other.call(*args, &block)) } 44 end 45 46 def >>(other) 47 ->(*args, &block) { other.call(call(*args, &block)) } 48 end 49 42 50 end
Note:
See TracChangeset
for help on using the changeset viewer.