Abhishek L
c69c14cc7d
contrib/anaphoric: More anaphoric macros added
* hy/contrib/anaphoric.hy: The following anaphoric macros have been added `ap-reject` : Opposite of ap-filter, yields the elements when a `pred` evaluates to false `ap-dotimes` : Execute body forms (possibly for side-effects) n times with `it` bound from 0 to n-1 `ap-first` : return the first element that passes predicate `ap-last` : return the last element that passes predicate `ap-reduce`: anaphoric form of reduce that allows `acc` and `it` to create a function that is applied over the list * docs/contrib/anaphoric.rst: updated docs to reflect these changes * tests/__init__.py: updated to explicitly include tests for anaphoric macros
Hy
Lisp and Python should love each other. Let's make it happen. Try it.
Hylarious Hacks
OK, so, why?
Well. Python is awesome. So awesome, that we have so many tools to alter the languge in a core way, but we never use them.
Why?
Well, I wrote Hy to help people realize one thing about Python:
It's really goddamn awesome.
Oh, and lisps are neat.
(fan art from the one and only doctormo)
Project
- Code: https://github.com/hylang/hy
- Docs: http://hy.rtfd.org/
- Quickstart: http://hy.rtfd.org/quickstart
- Bug reports: We have no bugs! Your bugs are your own! (https://github.com/hylang/hy/issues)
- License: MIT (Expat)
Description
Languages
Python
50.7%
Hy
41.5%
reStructuredText
7.1%
Batchfile
0.4%
Makefile
0.3%