Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

misc/curry moved to dharmalab

  • Loading branch information...
commit 7981d15d5c1ac88ea3565cc2fb8666ab6eb1dba5 1 parent 827492a
dharmatech authored
Showing with 0 additions and 45 deletions.
  1. +0 −45 misc/curry.sls
45 misc/curry.sls
View
@@ -1,45 +0,0 @@
-
-(library
-
- (agave misc curry)
-
- (export curry)
-
- (import (rnrs) (agave misc symbols))
-
- (define-syntax curry-helper
-
- (syntax-rules ()
-
- ( (curry-helper (original ...) procedure parameter rest ...)
-
- (lambda (parameter)
-
- (curry-helper (original ...) procedure rest ...)) )
-
- ( (curry-helper (original ...) procedure)
-
- (procedure original ...) )))
-
- (define-syntax curry
-
- (lambda (x)
-
- (syntax-case x ()
-
- ( (curry procedure parameter ...)
-
- (with-syntax ( ((sorted ...)
-
- (datum->syntax
- (syntax procedure)
- (list-sort symbol<?
- (syntax->datum
- (syntax (parameter ...)))))) )
-
- (syntax
-
- (curry-helper (parameter ...) ;; original
- procedure
- sorted ...))) ))))
- )
Please sign in to comment.
Something went wrong with that request. Please try again.