Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ret

  • Loading branch information...
commit ed740068052ba418fc133c93f7b07d289fe7ecd6 1 parent d4bd394
Andrew Wilcox authored

Showing 3 changed files with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  readme.md
  2. +4 0 ret.arc
  3. +10 0 ret.t
3  readme.md
Source Rendered
@@ -700,3 +700,6 @@ Pauan
700 700 * made functions and macros print as #<fn> and #<mac>.
701 701
702 702 * tests for extend and defrule.
  703 +
  704 +ret comes from Sean Kenney's kwizwiz.arc:
  705 +https://github.com/skenney26/kwizwiz/blob/ac0547e7d090690bec3a8a5d06fb1cfcf6484b82/kwizwiz.arc#L22
4 ret.arc
... ... @@ -0,0 +1,4 @@
  1 +(use arc)
  2 +
  3 +(mac ret (var val . body)
  4 + `(let ,var ,val ,@body ,var))
10 ret.t
... ... @@ -0,0 +1,10 @@
  1 +(use test-by-example)
  2 +
  3 +(example-test (runtime '(ret)) #<<.
  4 +
  5 +> (ret x 33
  6 + (++ x))
  7 +34
  8 +
  9 +.
  10 +)

0 comments on commit ed74006

Please sign in to comment.
Something went wrong with that request. Please try again.