Anaphoric macros for racket
Go to file
2016-04-08 12:22:29 +02:00
scribblings Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
test Implemented aif, awhen and acond. 2016-04-08 12:16:33 +02:00
.gitignore Initial commit 2016-04-08 11:12:18 +02:00
.travis.yml Initial commit 2016-04-08 11:12:18 +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
info.rkt Initial commit 2016-04-08 11:12:18 +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 badges to README file 2016-04-08 12:22:29 +02:00

Build Status, Coverage Status, Build Stats,

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.