Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slurping into a Clojure vector #20

Open
scttnlsn opened this issue Dec 10, 2013 · 3 comments
Open

Slurping into a Clojure vector #20

scttnlsn opened this issue Dec 10, 2013 · 3 comments

Comments

@scttnlsn
Copy link

It would be nice if I could perform the following slurpage (via two forward slurps):

(let [x |])(+ 1 2)

(let [x |(+ 1 2)])

But after the first forward slurp I'm left in the following invalid state:

(let [x )(+ 1 2 3)]

Is this possible? I believe Emacs' paredit handles this situation.

@odyssomay
Copy link
Owner

Should it work like this:

(let [x |])(+ 1 2)
(let [x |](+ 1 2))
(let [x |(+ 1 2)])

or this:

(let [x |])(+ 1 2)
(let [x |(+ 1 2)])

(each new line is a slurp)

@scttnlsn
Copy link
Author

I was imagining it working like the first option you provided (2 slurps).

@odyssomay
Copy link
Owner

Gotcha, I think that's the best option as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants