File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
 
subject: Noob question a.each_slice(n){|a| p a}