hy
hy copied to clipboard
Shadow `cut`.
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)))
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.