Skip to content

Instantly share code, notes, and snippets.

@jlebensold
Created November 17, 2017 01:00
Show Gist options
  • Save jlebensold/1429b41307e6c327f8f1f4dd796e5add to your computer and use it in GitHub Desktop.
Save jlebensold/1429b41307e6c327f8f1f4dd796e5add to your computer and use it in GitHub Desktop.
Sad Pastries
let pastryList: list(pastry) = [
{ label: "🥐 Croissants", flour: 0.7, butter: 0.5, sugar: 0.2, eggs: 0.0 },
{ label: "🍪 Cookies", flour: 0.5, butter: 0.4, sugar: 0.5, eggs: 0.2 },
{ label: "🥞 Pancakes", flour: 0.7, butter: 0.5, sugar: 0.3, eggs: 0.3 },
{ label: "🍩 Dougnuts", flour: 0.5, butter: 0.2, sugar: 0.8, eggs: 0.1 }
];
let theList = List.map((item) => <Text>{item.label}</Text>, pastryList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment