https://github.com/avidrucker/clojure-hof-emoji
https://github.com/avidrucker/clojure-hof-emoji
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avidrucker/clojure-hof-emoji
- Owner: avidrucker
- Created: 2021-02-22T22:03:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-25T15:35:33.000Z (over 5 years ago)
- Last Synced: 2025-04-05T13:33:10.854Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Cooking with Higher Order Functions in Clojure
Requirements:
- [ ] Emoji render in code blocks
- [ ] Emoji render in Typora markdown
- [ ] Emoji render in GitHub markdown
### the `map` function
```clojure
;; coded in emoji
(map ๐ฅ [๐ฎ ๐ฅ ๐ ๐ฝ ๐ท ๐ฆ])
;; => [๐ ๐ ๐ ๐ฟ ๐ฅ ๐ค]
;; now written out using words
(map cook [:cow: :potato: :chicken: :corn: :pig: :shrimp:])
;; => :hamburger: :fries: :poultry_leg: :popcorn: :bacon: :fried_shrimp:
```
### the `filter` function
```clojure
(filter vegetarian? [๐ ๐ ๐ ๐ฟ ๐ฅ ๐ค ๐ฅ])
;; => [๐ ๐ฟ ๐ฅ] ;; assuming no lard or butter were used
;; now written out using words
(filter vegetarian? [:hamburger: :fries: :poultry_leg: :popcorn: :bacon: :fried_shrimp: :green_salad])
;; => [:fries: :popcorn: :green_salad:]
```
### reduce
```clojure
(reduce eat [๐ ๐ ๐ ๐ฟ ๐ฅ ๐ค ๐ฅ])
;; => ๐ฉ
;; now written out using words
(reduce eat [:hamburger: :fries: :poultry_leg: :popcorn: :bacon: :fried_shrimp: :green_salad:])
;; => :poop:
```
### apply, etc..
๐ ๐ช ๐ ๐ฆ ๐ ๐ฅ ๐ฃ โฐ ๐ฃ ๐ค ๐ฆ ๐ง ๐ ๐ฅ `:bread: :cookie: :fish: :squid: :meat_on_bone: :egg: :hatching_chick: :alarm_clock: :fishing_pole_and_fish: :fried_shrimp: :shrimp: :cheese: :pizza: :milk_glass:`
๐พ `:ear_of_rice:` :rooster: :mushroom: :yum: :electric_plug: :bulb: :bee: :honey_pot: :hourglass: :watch: :ocean: :knife: :baby: :man: :older_man: :skull: :robot: :baby_chick: :chicken: :horse: :horse_racing: :zap: :cloud_with_rain: :open_umbrella: :sweat_drops: :sweat: :thermometer: :poop:
:rice: :fish: ==> ๐ฃ `:rice: :fish: :sushi:`
:egg: + cook = :fried_egg:
๐ฅ ๐
๐ฅ ==> ๐ฅ `:cucumber: :tomato: :carrot: :green_salad:`
๐ <== ๐น ๐ท ๐บ ๐ผ `:bouquet: :rose: :tulip: :hibiscus: :blossom:`
Unofficially supported emoji
๐ง ๐ฅฌ ๐จโ๐ณ ๐ฅฉ ๐ฅช ๐ฅฆ `:salt: :leafy_green: :male_cook: :cut_of_meat: :sandwich: :broccoli:`
Note: These are not available yet: Butter, wood, falafel, ice, axe, razor.
https://emojiguide.org/butter https://emojiguide.org/wood
Ideas
- fantasy? ๐ง ๐ง ๐ง ๐ง ๐ ๐ฆ
- human? ๐ป ๐ง ๐ค ๐ฝ
- body-part? ๐ฆต ๐ ๐ ๐ฆถ ๐ ๐๏ธ
- animal? :dog: :cat: :rabbit: :mouse: :turtle: :snake: :lizard: :fish: ๐ธ ๐ฆ ๐ ๐ ๐ป ๐ฆ ๐
- bird? :turkey: :eagle: :chicken: :owl:
- insect? ๐ ๐ฆ ๐ ๐ฆ ๐ ๐ ๐ฆ ๐ฆ ๐ท๏ธ
- dinosaur? ๐ฆ ๐ฆ
- fruit? ๐ ๐ ๐ฅ ๐
- sport? :soccer: :baseball: :football: :basketball: :bowling: :golf:
- musical-instrument? :violin: :trumpet: :musical_keyboard: :guitar: :drum:
- place? :mountain: :ocean: :desert: :volcano: ๐๏ธ
- transportation? :bus: :train: :airplane: :car: :bike:
- furniture?
- ๐ moon cycle with time ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐
- increase-age ๐ถ ๐ง ๐ง ๐ง baby, child, person, older person
โ or :egg: :hatching_chick: :hatched_chick: :chicken:
- combine :houses: :house: ๐๏ธ ๐
- apply-time ๐ฑ ๐ณ or โณโ
- apply-heat :thermometer: :candle: ๐ฃ ๐ฅ ๐งจ
- apply-wind :trumpet: :wind_face: :musical_note:
- apply-electricity :battery: :electric_plug: :zap:
- apply-magnetism ... magnet isn't yet well supported
- apply-key :key: :lock: :unlock:
- apply-axe :evergreen_tree: ... missing wood though
- apply-vaccine :syringe: :mask:
- apply-medicine :pill: ๐ค ๐คข
- apply-razor ๐ง ๐ฆฒ ๐ง โ๏ธ ๐ ... missing razor though
- apply-shower :shower:
- apply-sleep :sleepy: :bed: :slightly_smiling_face:
- apply-school ๐ซ๐
- apply-fire-extinguisher ๐งฏ :fire_extinguisher:
- apply-cold :snowflake: ๐ฅถ
- apply-light :rainbow: :sunny: :sun_behind_rain_cloud: ๐ฆ
More ideas:
- โฐ๏ธ coffin as home for dead or sleeping place for vampires
- ๐ฆด bone as smallest irreducible part of skeleton... those there is no skeleton emoji just yet, just a skull: ๐
- Building construction with :building_construction: :construction_worker: :office:
- Homes for certain animals, insects, etc.: ๐ธ๏ธ
- Superhero quotes: Is it a ๐ฆโ :bird: is it a :airplane: โ๏ธ no, it's ๐ฆธ
- Science related transformations: โข๏ธ ๐งฒ ๐งฌ ๐ญ ๐ ๐จโ๐
- Something having to do with transforming sight :eye: :microscope: :telescope: โ๏ธ ๐
- ... or transforming sound: :microphone: :mega: :speaking_head:
-