def print_posts_to_file(posts, file_destination): for post in posts: Utilities.print_to_file(file_destination, str(post))
def print_posts_to_file_labeled(label, posts, file_destination): Utilities.print_to_file(file_destination, label) print_posts_to_file(posts, file_destination)
def print_member_to_file(file_destination, f): return lambda (post): Utilities.print_to_file(file_destination, f(post))