You can undo and redo typing on an iPhone by quickly shaking your device. You can also use the "Select" and "Cut" features to delete (and paste) text.
The clipboard history is a feature in Windows 10 that holds the most recent 25 items you've copied or cut. Here's how to enable and use it.