This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Ruby and the fly likes Noob question a.each_slice(n){|a| p a} Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Noob question a.each_slice(n){|a| p a}" Watch "Noob question a.each_slice(n){|a| p a}" New topic
Author

Noob question a.each_slice(n){|a| p a}

gary lucas
Greenhorn

Joined: Aug 28, 2011
Posts: 2
What's p?

Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1358
    
  17
p is a (decidedly cryptic) method that is the equivalent of
gary lucas
Greenhorn

Joined: Aug 28, 2011
Posts: 2
Thanks, appreciated
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Noob question a.each_slice(n){|a| p a}