Skip to content

Instantly share code, notes, and snippets.

@adetaylor
Last active November 4, 2022 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adetaylor/5e3ee31e761f1a7e1fa10e47767cc3d4 to your computer and use it in GitHub Desktop.
Save adetaylor/5e3ee31e761f1a7e1fa10e47767cc3d4 to your computer and use it in GitHub Desktop.
let json_decode_result = decode_some_hypothetical_json();
let mut site_descriptions = Vec::new();
// Convert JSON site descriptions into rendered site descriptions
site_descriptions.extend(
get_json_list_items(&json_decode_result).map(convert_json_to_site_description),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment