Last active
June 10, 2016 16:25
-
-
Save jemgold/79a468b77309e65d16921e2c0620084a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defn view-book-list [book-list] | |
(->> book-list | |
(map view-book) | |
(div [ class "container" ]))) |
This file contains hidden or 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
viewBookList bookList = | |
bookList | |
|> List.map viewBook | |
|> div [ class "container" ] | |
viewBookList bookList = | |
div | |
[ class "container" ] | |
(List.map viewBook bookList) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment