# Please Forward: Ruby Quiz Submission

**URL:** <https://rubytalk.org/t/please-forward-ruby-quiz-submission/42895>\
**Category:** ruby-talk\
**Created:** [10 December 2007 14:35 UTC](https://rubytalk.org/t/please-forward-ruby-quiz-submission/42895 "2007-12-10T14:35:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Edward\_Gray\_II](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@James\_Edward\_Gray\_II](https://rubytalk.org/u/James_Edward_Gray_II)\
**Post date:** [10 December 2007 14:35 UTC](https://rubytalk.org/t/please-forward-ruby-quiz-submission/42895/1 "2007-12-10T14:35:06Z")

</div>

> From: "Robert Horvick" \<robert.horvick@gmail.com\>  
> Date: December 9, 2007 11:15:32 PM CST  
> To: submission@rubyquiz.com  
> Cc: "Robert Horvick" \<robert.horvick@gmail.com\>  
> Subject: Please Forward: Ruby Quiz Submission
> 
> I'm only a few months into learning Ruby but what the heck 🙂
> 
> It attempts to print all possible loops of the same form (start from left, loop down and to the left, finish upwards). For example "mississippi" finds three loops.
> 
> $ ruby 149.rb mississippi  
> &nbsp;&nbsp;i  
> &nbsp;&nbsp;p  
> &nbsp;&nbsp;i  
> miss  
> &nbsp;&nbsp;si
> 
> i  
> p  
> mis  
> ss  
> si
> 
> missis  
> &nbsp;&nbsp;&nbsp;&nbsp;ps  
> &nbsp;&nbsp;&nbsp;&nbsp;pi

[149.rb](https://rubytalk.org/uploads/short-url/3EsvTjP74HbH5bBtrB0gcS2zgW5.rb) (1.94 KB)

> **···**
>
> Begin forwarded message:
