mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
monads: Remove unused 'nargs' parameter from 'lift'.
* guix/monads.scm (lift): Remove 'nargs' parameter.
This commit is contained in:
parent
fae3d34720
commit
e4bed284ae
1 changed files with 3 additions and 3 deletions
|
|
@ -202,9 +202,9 @@ the last one."
|
|||
(define-lift lift6 (a b c d e f))
|
||||
(define-lift lift7 (a b c d e f g))
|
||||
|
||||
(define (lift nargs proc monad)
|
||||
"Lift PROC, a procedure that accepts NARGS arguments, to MONAD---i.e.,
|
||||
return a monadic function in MONAD."
|
||||
(define (lift proc monad)
|
||||
"Lift PROC, a procedure that accepts an arbitrary number of arguments, to
|
||||
MONAD---i.e., return a monadic function in MONAD."
|
||||
(lambda args
|
||||
(with-monad monad
|
||||
(return (apply proc args)))))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue