/Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningArray.h
Warning: this algorithm works on the assumption that there are no duplicate indices in the view. If there are duplicate indices in your set this will not give the correct result.
true if conversion to a slice is successful
bool TryMakeSlice()