Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/stianeikeland/emojinius

Write clojure code using emoji
https://github.com/stianeikeland/emojinius

Last synced: 3 months ago
JSON representation

Write clojure code using emoji

Awesome Lists containing this project

README

        

# emojinius

A Clojure library designed to explore strange new words, to seek out new scripts and new characters, to boldly code in a charset no man has coded in before.

Write clojure code using emoji.

![Emojinius](http://www.eikeland.se/other/emojinius.png)

## Example

* `cycle` : ๐Ÿšด
* `take` : ๐Ÿ‘Š
* `10` : ๐Ÿ”Ÿ

```clojure
emojinius.core=> (def ๐Ÿ (๐Ÿšด [:๐Ÿš™ :๐Ÿš— :๐Ÿš• :๐Ÿš“ :๐Ÿšœ]))
emojinius.core=> (๐Ÿ‘Š ๐Ÿ”Ÿ ๐Ÿ)
-> (:๐Ÿš™ :๐Ÿš— :๐Ÿš• :๐Ÿš“ :๐Ÿšœ :๐Ÿš™ :๐Ÿš— :๐Ÿš• :๐Ÿš“ :๐Ÿšœ)
```

* `loop` : ๐Ÿ”
* `recur` : โคด
* `*` : โœ–
* `-` : โž–
* `println` : ๐Ÿ“ 
* `when` : โŒš-โ“

```clojure
(๐Ÿ” [๐Ÿ’ต (โœ– ๐Ÿ”Ÿ ๐Ÿ”Ÿ)]
(โŒš-โ“ (> ๐Ÿ’ต ๐Ÿ”Ÿ)
(๐Ÿ“  ๐Ÿ’ต)
(โคด (โž– ๐Ÿ’ต ๐Ÿ”Ÿ))))
```

## Installing

Add `[emojinius "0.1.0"]` to the dependencies vector.

```
(ns program
[:use emojinius.core])

(defn -main []
(๐Ÿ“  "๐Ÿ™‹"))
```

## Other

Pull requests and dogecoins welcome. (DM3oLs8QcAaMu5UtYrroWjeKBiaTqevPzj)

## License

Copyright ยฉ 2014 Stian Eikeland

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.