SQL Server 2017: Interleaved Execution for MSTVFs
What I don't want you to take away from this
Is that I want you to start using Multi Statement Table Valued Functions all over the place. There are still problems with them.
Backed by table variables
Lots of hidden I/O cost
Number of executions may surprise you