POSTS
Steven is a whimsical programmer
BlogNowhere 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.