Challenge 2: Language Processing with Transducer
Explore how to build a transducer function in PHP that processes word lists by converting to uppercase, filtering by length, and inserting underscores. Understand function composition and higher-order functions to optimize data processing using functional programming principles.
Problem statement
Write a transducer that performs the following operations in the order specified below:
- Convert all words in a list to their uppercase versions.
- Filter out all words with four or fewer characters.
- Separate all characters in each word with an