Hello, I have a case where it would be great to have lo.chunk method for map. Below I provide an example of this case.
Sometimes, api can accept request with map, like:
var request map[string]RequestParams
where value RequestParams is parameters of request and key helps to identify your request in batch.
And api can accept maximum 50 elements in map.
Now if I need to process 500 items, I need to chunk it by myself and write additional code for chunking, it would be great to have such func in lo.
I could make a PR for it, if you agree to add it. Also, I could provide more details about solution and problem
Hello, I have a case where it would be great to have lo.chunk method for map. Below I provide an example of this case.
Sometimes, api can accept request with map, like:
where value RequestParams is parameters of request and key helps to identify your request in batch.
And api can accept maximum 50 elements in map.
Now if I need to process 500 items, I need to chunk it by myself and write additional code for chunking, it would be great to have such func in lo. I could make a PR for it, if you agree to add it. Also, I could provide more details about solution and problem