Skip to content

Instantly share code, notes, and snippets.

@benaryorg
Created November 12, 2015 18:40
Show Gist options
  • Save benaryorg/4128656dc642dcfbff01 to your computer and use it in GitHub Desktop.
Save benaryorg/4128656dc642dcfbff01 to your computer and use it in GitHub Desktop.
fn main()
{
let v = (0..16).collect::<Vec<_>>();
for p in v.iter()
.chain(v.iter().rev().skip(1).take(v.len()-2))
.cycle()
.take(35)
{
for i in (v.len()/2..).take(v.len()+v.len()/2)
{
print!("{}",if (i%(v.len()/2))==(p%(v.len()/2)){'#'} else{' '});
}
println!("");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment