I don't use either Ruby or Python but I think that the first way is more natural.
foldLeft(tail(array), str(head(elem)), (acc: String, elem: T) -> acc + ',' + str(elem))