In daily development, the Map, Filter, and Reduce functions provided by FP are indeed very useful, but there may be identical elements in the arrays or slices used in business, so I have to deduplicate the arrays. Because FP does not provide deduplication functionality, I can only use the closure function to deduplicate when writing the Map myself, which is not very convenient. So I wrote functions for array and slice deduplication.
In daily development, the Map, Filter, and Reduce functions provided by FP are indeed very useful, but there may be identical elements in the arrays or slices used in business, so I have to deduplicate the arrays. Because FP does not provide deduplication functionality, I can only use the closure function to deduplicate when writing the Map myself, which is not very convenient. So I wrote functions for array and slice deduplication.