Skip to content
/ cadnr Public
forked from eutro/cadnr

car, cdr, caaaaddddr, and everything in between.

License

Notifications You must be signed in to change notification settings

shhyou/cadnr

 
 

Repository files navigation

c(a|d)ⁿr

CI Collection Documentation License


car, cdr, caaaaddddr, and everything in between.

See the documentation for details!


This module extends a number of built-in Racket functions that have obvious arbitrary extensions.

For instance, the caaaar-cddddr family of functions are defined for all combinations of as and ds, but only up to four! The obvious extension is to allow for an arbitrary number of each, and to simply generate them on the fly when they are referred to.

With this module required, it’s possible to use these functions just by naming them:

Examples:

> (caddddddddddr '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15))
11
> (succcccc 1)
6
> (sub1234 5678)
4444

License

This software is distributed under the MIT license and the Apache version 2.0 license, at your option. See LICENSE-MIT and LICENSE-APACHE for details.

About

car, cdr, caaaaddddr, and everything in between.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Racket 100.0%