POSTS

Steven is a whimsical programmer

Blog

Nowhere is this more readily seen than when learning a language, in this case Ruby.

def something
  puts "Say Something"
  yield("\t[", "]\n")
end

something { |startchar, endchar| puts startchar + "Reggae, Reggae" + endchar}
something { |startchar, endchar| puts startchar + "Rasta, Rasta" + endchar}

Produces…

Say Something
        [Reggae, Reggae]
Say Something
        [Rasta, Rasta]

Stay irie, my bretheren.

Bob approves