An open API service indexing awesome lists of open source software.

https://github.com/avidrucker/clojure-hof-emoji


https://github.com/avidrucker/clojure-hof-emoji

Last synced: 6 months ago
JSON representation

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:
-