tasks/fake_chat.rake
# splits a friend circle into pairs
splits a friend circle into pairs
splits a friend circle into pairs
def chat_participants 
  friends.map do |friend|
    friend.combination(2).to_a
  end.flatten(1)
end
def chat_participants friends . map do | friend | friend . combination ( 2 ) . to_a end . flatten ( 1 ) end
splits a friend circle into pairs
splits a friend circle into pairs