You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem/Opportunity
The paredit API has some fns that accept a pos argument.
It expects pos to be expressed as a map with :row and :col keys.
The paredit ns came from rewrite-cljs so the history/compatibility makes sense.
But rewrite-clj expresses position as a vector [row col] as a return from rewrite-clj.zip/position.
And allows for both the map and vector syntax for pos arg for rewrite-clj.zip/find-last-by-pos and rewrite-clj.zip/find-tag-by-pos.
Proposed Solution
In addition to map, also accept vector [row col] for pos for paredit pos args:
kill-at-pos
kill-one-at-pos
split-at-pos
Alternative Solutions
Nada
Additional context
None
Action
I will make it so
The text was updated successfully, but these errors were encountered:
Problem/Opportunity
The paredit API has some fns that accept a
pos
argument.It expects pos to be expressed as a map with
:row
and:col
keys.The paredit ns came from rewrite-cljs so the history/compatibility makes sense.
But rewrite-clj expresses position as a vector
[row col]
as a return fromrewrite-clj.zip/position
.And allows for both the map and vector syntax for
pos
arg forrewrite-clj.zip/find-last-by-pos
andrewrite-clj.zip/find-tag-by-pos
.Proposed Solution
In addition to map, also accept vector
[row col]
forpos
for pareditpos
args:kill-at-pos
kill-one-at-pos
split-at-pos
Alternative Solutions
Nada
Additional context
None
Action
I will make it so
The text was updated successfully, but these errors were encountered: