In article E1Hv4fY-0005eN-9L@x31,
Yukihiro M. [email protected] writes:
lambdae$B$K$h$C$F@8@.$7$?e(BProce$B$N87L)2=$O9T$$$^$9!#$"$-$i$a$?$N$O!"e(B
lambdae$B$K$h$C$F@8@.$7$?$H$7$F$be(Byielde$B$G8F$S=P$7$?$i87L)$J%A%'%Ce(B
e$B%/$O9T$o$J$$$h$&$K$9$k$3$H$G$9!#e(B
e$B$J$k$[$I!#e(B
lambda e$B$He(B call e$B$G07$&HO0O$GDL>o$N%a%=%C%IE*0z?tEO$7$N%;%^%se(B
e$B%F%#%/%9$,J]$?$l$k$N$O!"$$$^$^$G$^$H$b$G$J$+$C$?$N$,$^$H$b$Ke(B
e$B$J$k$H$$$&$3$H$G!"D9G/$NLdBj$,2~A1$5$l$k$N$G4r$7$$$G$9!#e(B
e$B$=$NBe=~$H$7$F!"e(B[[1,2],[3,4]].each(&lambda {|a,b| p [a,b]})
e$B$,%(%i!<$K$J$k$o$1$G$9$,!"e(BProc.new e$B$de(B proc
e$B$O;D$k$s$G$7$?$Ce(B
e$B$1e(B?
- lambdae$B$G$O87L)$J%A%'%C%/e(B
- yielde$B$Oe(Bcalle$B$NJLL>e(B
e$B$G$9!#:#=5$5$5$@$/$s$HD>@\2q$&$N$G$=$N;~$$$m$$$mAjCL$7$^$9!#e(B
e$BF1$8$J$iJLL>$O$$$i$J$$$s$8$c$J$$$N!“$H;d$Ne(B minimalist e$BE*B&LLe(B
e$B$,$5$5$d$-$^$9!#$b$A$m$se(B Ruby e$B$,e(B minimalistic
e$B$J%G%6%$%s$G$Oe(B
e$B$J$/!”$=$l$,6/$$M}M3$K$J$i$J$$$3$H$O$o$+$C$F$$$^$9$,!"5?Ld$Ne(B
e$B$-$C$+$1$K$O$J$j$^$9!#e(B
e$B$=$7$F!“e(B[ruby-dev:30856] e$B$K$”$2$i$l$F$$$kM}M3$N$&$A!“8e<T$Oe(B
call e$B$G$be(B nil.call e$B$r:n$l$P$$$$$N$G!”;D$kM}M3$O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