* [bug#57621] [PATCH] gnu: Add cl-positional-lambda.
@ 2022-09-06 13:23 jgart via Guix-patches via
2022-09-06 13:25 ` [bug#57621] [PATCH 1/2] gnu: Add cl-map-bind jgart via Guix-patches via
2022-09-07 12:39 ` bug#57621: [PATCH] " Guillaume Le Vaillant
0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-09-06 13:23 UTC (permalink / raw)
To: 57621
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#57621] [PATCH 1/2] gnu: Add cl-map-bind.
2022-09-06 13:23 [bug#57621] [PATCH] gnu: Add cl-positional-lambda jgart via Guix-patches via
@ 2022-09-06 13:25 ` jgart via Guix-patches via
2022-09-06 13:25 ` [bug#57621] [PATCH 2/2] gnu: Add cl-positional-lambda jgart via Guix-patches via
2022-09-07 12:39 ` bug#57621: [PATCH] " Guillaume Le Vaillant
1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-09-06 13:25 UTC (permalink / raw)
To: 57621; +Cc: jgart
* gnu/packages/lisp-xyz.scm (cl-map-bind): New variable.
---
gnu/packages/lisp-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 8372a154b6..597df27384 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -148,6 +148,40 @@ (define-public cl-alexandria
(define-public ecl-alexandria
(sbcl-package->ecl-package sbcl-alexandria))
+(define-public sbcl-map-bind
+ (let ((commit "532d55d93540c632e22b2cd264b5daa5f9d3d900")
+ (revision "0"))
+ (package
+ (name "sbcl-map-bind")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Hexstream/map-bind")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0hfy65xyqc4zqfncn11pp3hjjkdz7m91cynnv91s3lgcl3kffva0"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:asd-systems '("map-bind" "map-bind_tests")))
+ (native-inputs
+ (list sbcl-parachute))
+ (home-page "https://www.hexstreamsoft.com/libraries/map-bind/")
+ (synopsis "Macro favouring positional references over naming")
+ (description
+"@code{MAP-BIND} is a macro that allows visual grouping of variables with
+their corresponding values in calls to mapping operators when using an
+inline @code{LAMBDA}.")
+ (license license:unlicense))))
+
+(define-public cl-map-bind
+ (sbcl-package->cl-source-package sbcl-map-bind))
+
+(define-public ecl-cl-map-bind
+ (sbcl-package->ecl-package sbcl-map-bind))
+
(define-public sbcl-bodge-utilities
(let ((commit "6304bac4abe06d53579e2c0fc4437d14ff077d9f")
(revision "1"))
--
2.37.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#57621] [PATCH 2/2] gnu: Add cl-positional-lambda.
2022-09-06 13:25 ` [bug#57621] [PATCH 1/2] gnu: Add cl-map-bind jgart via Guix-patches via
@ 2022-09-06 13:25 ` jgart via Guix-patches via
0 siblings, 0 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-09-06 13:25 UTC (permalink / raw)
To: 57621; +Cc: jgart
* gnu/packages/lisp-xyz.scm (cl-positional-lambda): New variable.
---
gnu/packages/lisp-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 597df27384..7b9ef7bf49 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -182,6 +182,45 @@ (define-public cl-map-bind
(define-public ecl-cl-map-bind
(sbcl-package->ecl-package sbcl-map-bind))
+(define-public sbcl-positional-lambda
+ (let ((commit "a43a7bb4ef6faa277e6a7440ec9839711c4b9d28")
+ (revision "0"))
+ (package
+ (name "sbcl-positional-lambda")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Hexstream/positional-lambda")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1l27mw5ciqz7rnjq1lwslgk220i8iqcr39rs8b7hxkp1yqmah5zq"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:asd-systems '("positional-lambda" "positional-lambda_tests")))
+ (native-inputs
+ (list sbcl-parachute))
+ (inputs
+ (list sbcl-map-bind))
+ (home-page "https://www.hexstreamsoft.com/libraries/positional-lambda/")
+ (synopsis "Macro favouring positional references over naming")
+ (description
+"This package provides a concise, intuitive and flexible macro for trivial
+lambdas that eschews explicit naming of parameter variables in favor of
+positional references, with support for a used or ignored &rest parameter
+and automatic declaration of ignored parameters when logical @code{gaps}
+are left in the positional references. Further convenience features
+are provided.")
+ (license license:unlicense))))
+
+(define-public cl-positional-lambda
+ (sbcl-package->cl-source-package sbcl-positional-lambda))
+
+(define-public ecl-cl-positional-lambda
+ (sbcl-package->ecl-package sbcl-positional-lambda))
+
(define-public sbcl-bodge-utilities
(let ((commit "6304bac4abe06d53579e2c0fc4437d14ff077d9f")
(revision "1"))
--
2.37.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#57621: [PATCH] gnu: Add cl-positional-lambda.
2022-09-06 13:23 [bug#57621] [PATCH] gnu: Add cl-positional-lambda jgart via Guix-patches via
2022-09-06 13:25 ` [bug#57621] [PATCH 1/2] gnu: Add cl-map-bind jgart via Guix-patches via
@ 2022-09-07 12:39 ` Guillaume Le Vaillant
1 sibling, 0 replies; 4+ messages in thread
From: Guillaume Le Vaillant @ 2022-09-07 12:39 UTC (permalink / raw)
To: jgart; +Cc: 57621-done
[-- Attachment #1: Type: text/plain, Size: 82 bytes --]
Patches pushed as 73654708bf2a14cc557ccc1ccf76514e67abf83b and
following.
Thanks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-07 12:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-06 13:23 [bug#57621] [PATCH] gnu: Add cl-positional-lambda jgart via Guix-patches via
2022-09-06 13:25 ` [bug#57621] [PATCH 1/2] gnu: Add cl-map-bind jgart via Guix-patches via
2022-09-06 13:25 ` [bug#57621] [PATCH 2/2] gnu: Add cl-positional-lambda jgart via Guix-patches via
2022-09-07 12:39 ` bug#57621: [PATCH] " Guillaume Le Vaillant
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.