Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexknauth/afl
a racket lang-extension for rackjure-like anonymous function literals
https://github.com/alexknauth/afl
Last synced: about 1 month ago
JSON representation
a racket lang-extension for rackjure-like anonymous function literals
- Host: GitHub
- URL: https://github.com/alexknauth/afl
- Owner: AlexKnauth
- License: mit
- Created: 2014-07-10T21:15:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T14:23:31.000Z (almost 3 years ago)
- Last Synced: 2024-10-16T02:55:02.728Z (3 months ago)
- Language: Racket
- Homepage:
- Size: 34.2 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
afl [![Build Status](https://travis-ci.org/AlexKnauth/afl.png?branch=master)](https://travis-ci.org/AlexKnauth/afl)
===a lang-extension for adding rackjure-like [anonymous function literals](https://docs.racket-lang.org/rackjure/index.html#%28part._func-lit%29) to a language, based on at-exp and rackjure
documentation: https://docs.racket-lang.org/afl/index.html
Example:
```racket
#lang afl racket/base
(map #λ(+ % 1) '(1 2 3)) ;=> '(2 3 4)
```Comparison with similar packages / alternatives:
| Package | Example | Multi-Args | Holes in Sub-exprs?
| ---------------------------------------------------------------------------- | --------------------------------- | ------------------------ | ----------------------
| [afl](https://docs.racket-lang.org/afl/index.html) | `(map #λ(+ % 1) (list 1 2 3))` | `%1`, `%2` etc. | Yes: `#λ(+ (* 3 %) 1)`
| [aful](https://docs.racket-lang.org/aful/index.html) | `(map #λ(+ % 1) (list 1 2 3))` | `%1`, `%2` etc. | Yes: `#λ(+ (* 3 %) 1)`
| [fancy-app](https://docs.racket-lang.org/fancy-app/index.html) | `(map (+ _ 1) (list 1 2 3))` | `_`, `_` in same order | No.
| [compose-app/fancy-app](https://docs.racket-lang.org/compose-app/index.html) | `(map (+ _ 1) (list 1 2 3))` | `_`, `_` in same order | No, but `(+ _ 1 .. * 3 _)`
| [curly-fn](https://docs.racket-lang.org/curly-fn/index.html) | `(map #{+ % 1} (list 1 2 3))` | `%1`, `%2` etc. | Yes: `#{+ (* 3 %) 1}`
| [rackjure](https://docs.racket-lang.org/rackjure/index.html) | `(map #λ(+ % 1) (list 1 2 3))` | `%1`, `%2` etc. | Yes: `#λ(+ (* 3 %) 1)`
| [srfi/26](https://docs.racket-lang.org/srfi/srfi-std/srfi-26.html) | `(map (cut + <> 1) (list 1 2 3))` | `<>`, `<>` in same order | No.