C# has https://docs.microsoft.com/en-us/dotnet/csharp/programming-g... (only partially what you want I think)