Created
November 17, 2017 01:00
-
-
Save jlebensold/1429b41307e6c327f8f1f4dd796e5add to your computer and use it in GitHub Desktop.
Sad Pastries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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