Skip to content

An implementation of clojure's seq and collection APIs against reason's Array and List

License

Notifications You must be signed in to change notification settings

sansthesis/clj-collection-apis-reasonml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojure Collection APIs in Reason

This project aims to implement the Clojure collection APIs for Reason's Array and List types whenever they make sense.

In addition, it provides ports of many of Clojure's predicates such as even? and the non-collection API of Scala's Option type.

Reference the unit tests for examples on usage.

Using clj-collection-apis-reasonml

First, add the dependency to your package.json:

yarn add clj-collection-apis-reasonml

Then add it to your bsconfig.json:

"bs-dependencies": [
  "clj-collection-apis-reasonml"
],

Finally, you're free to use it in your code:

/* test.re */
let myVal = Clj.Array.drop(2, [|1, 2, 3|]);
/* myVal is now [|3|] */

About

An implementation of clojure's seq and collection APIs against reason's Array and List

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages