I imported my words from the text file following the optional instructions.
I used the for(Type : Collection) loop for my method
TArray<FString> UBullCowCartridge::GetValidWords(TArray<FString> WordList) const
{
TArray<FString> ValidWords;
for (FString WordFound : WordList)
{
if(IsIsogram(WordFound) && WordFound.Len() >= 4 && WordFound.Len() <=8)
{
ValidWords.Emplace(WordFound);
}
}
return ValidWords;
}
This also works fine.