speculative nonfiction
Language ergnonomic studies: 52 card deck
Javascript:
const cards = () => ['♥','♠','♣','♦']
.map((suite) => (['2','3','4','5','6','7','8','9','10','J','Q','K','A'].map((card) => suite + card)))
Clojure:
(defn new-deck []
(for [r [\♥ \♠ \♣ \♦]
s [:2 :3 :4 :5 :6 :7 :8 :9 :10 :J :Q :K :A]]
[r s]))
💻
Monday October 19, 2020