Name: Anonymous 2011-03-26 8:19
In the language of your choice list in order of frequency bi-grams and tri-grams posted to
/prog/.
/prog/.
case input
when Array: puts 'input is an Array!'
when Hash: puts 'input is a Hash!'
end
say "input is $(input.{array? -> "an Array!"
;hash? -> "a Hash!"})"
catfood = case
when cat.age <= 1: junior
when cat.age > 10: senior
else normal
end
catfood =: cat.age.{?<=1 -> junior
;?>10 -> senior
; _ -> normal}