Anaphoric macros for racket
Go to file
2016-08-13 18:51:27 +02:00
scribblings Added if-let when-let and cond-let, as per Alex Knauth's suggestion. Closes issue #1. 2016-08-08 12:32:53 +02:00
test Added tests, included newer Racket versions in .travis.yml 2016-08-08 13:15:02 +02:00
.gitignore Initial commit 2016-04-08 11:12:18 +02:00
.travis.yml Added tests, included newer Racket versions in .travis.yml 2016-08-08 13:15:02 +02:00
acond.rkt Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
aif.rkt Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
awhen.rkt Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
cond-let.rkt Added if-let when-let and cond-let, as per Alex Knauth's suggestion. Closes issue #1. 2016-08-08 12:32:53 +02:00
if-let.rkt Added if-let when-let and cond-let, as per Alex Knauth's suggestion. Closes issue #1. 2016-08-08 12:32:53 +02:00
info.rkt Added if-let when-let and cond-let, as per Alex Knauth's suggestion. Closes issue #1. 2016-08-08 12:32:53 +02:00
it.rkt Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
LICENSE.txt Initial commit 2016-04-08 11:12:18 +02:00
main.rkt Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
README.md Added link to docs in README. 2016-08-13 18:51:27 +02:00
when-let.rkt Added if-let when-let and cond-let, as per Alex Knauth's suggestion. Closes issue #1. 2016-08-08 12:32:53 +02:00

Build Status, Coverage Status, Build Stats, Online Documentation.

anaphoric

Anaphoric conditionnal forms for racket:

(aif (member 'a lst)
  (displayln it)
  (displayln "not found"))

(awhen (member 'a lst)
  (displayln it))

(acond
  [(member 'a lst) (displayln it)]
  [(member 'b lst) (displayln it)]
  [else (displayln "not found")]) ;; Can't use "it" in the else clause.