£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊÇí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ӽ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--- !ruby/object:RI::MethodDescription
aliases: []
block_params: element
comment:
- !ruby/struct:SM::Flow::P
body: Adds a separated list. The list is separated by comma with breakable space, by default.
- !ruby/struct:SM::Flow::P
body: "#seplist iterates the list using iter_method. It yields each object to the block given for #seplist. The procedure separator_proc is called between each yields."
- !ruby/struct:SM::Flow::P
body: If the iteration is zero times, separator_proc is not called at all.
- !ruby/struct:SM::Flow::P
body: If separator_proc is nil or not given, +lambda { comma_breakable }+ is used. If iter_method is not given, :each is used.
- !ruby/struct:SM::Flow::P
body: For example, following 3 code fragments has similar effect.
- !ruby/struct:SM::Flow::VERB
body: " q.seplist([1,2,3]) {|v| xxx v }\n\n q.seplist([1,2,3], lambda { comma_breakable }, :each) {|v| xxx v }\n\n xxx 1\n q.comma_breakable\n xxx 2\n q.comma_breakable\n xxx 3\n"
full_name: PP::PPMethods#seplist
is_singleton: false
name: seplist
params: (list, sep=nil, iter_method=:each) {|element| ...}
visibility: public