Seeking Function to Replace Elements in Non-Empty Arrays Without Changing Type - Effect Community