hy icon indicating copy to clipboard operation
hy copied to clipboard

Shadow `cut`.

Open ekaschalk opened this issue 6 years ago • 1 comments

A common use-case is cleaning dataframes, for instance removing a footer number from column names.

I have a flip/curry tag macro, tz.flip, and would like to do:

(.rename df #f(cut 0 -1))

;; Instead must do
(.rename df (fn [x] (cut x 0 -1)))

ekaschalk avatar Aug 17 '17 20:08 ekaschalk

If you're interested in contributing to Hy (and we do always need more contributors), this would be a good first pull request. It shouldn't be hard to do.

Kodiologist avatar Aug 17 '17 20:08 Kodiologist