From 47b33052ae0bf54a45033de36cf2881e17d038c3 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Mon, 11 May 2020 07:39:25 -0500 Subject: [PATCH] Document `jupyter-after` --- jupyter-monads.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jupyter-monads.el b/jupyter-monads.el index 77a4f66..2f1a3e7 100644 --- a/jupyter-monads.el +++ b/jupyter-monads.el @@ -62,10 +62,14 @@ `(let ((jupyter-current-io ,io)) (jupyter--do ,@forms))) -(defun jupyter-after (io-value fn) +(defun jupyter-after (io-value io-fn) + "Return an I/O action that binds IO-VALUE to IO-FN. +That is, IO-FN is evaluated after binding IO-VALUE within the I/O +context." (declare (indent 1)) - (lambda (io) - (jupyter-bind io-value fn))) + (lambda (_) + (jupyter-bind io-value io-fn))) + (defun jupyter-idle (io-req) (jupyter-after io-req