sonntagsgesicht/vectorizeit ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python package called vectorizeit that gives me a vectorize decorator for normal functions.
I want to be able to wrap a function and have it automatically run across list like inputs, so if I pass tuples or lists it applies the function to each item and returns the combined result. It should also let me choose which arguments get vectorized, and it should support a zipped mode so multiple inputs are paired up and processed together instead of making every combination.
Please include a clean import like from vectorizeit import vectorize, add a few simple examples in the README style docs, and make sure it works with basic Python types and nested return values. I’d also like tests that cover the default behavior, selecting specific keys, and the zipped option.
If anything is unclear, look up the current docs online and keep the implementation simple and idiomatic.
Are you gonna build this?
make sure you review the code using coderabbit