My IsIsogram() variant

I’m pretty happy I managed to do it on my own!

bool FBullCowGame::IsIsogram(FString Guess) const
{
if (Guess.length() < 2) { return true; }

TMap<char, bool> LetterSeen;

// colon means in? and auto lets the system understand the datatype of Guess .
//.. so it cycles as many times as letters and Letter value is the appropriate one from Guess
for (auto Letter : Guess) 
{
	Letter = tolower(Letter);			// tolower is
	if (!LetterSeen[Letter])
	{
		LetterSeen[Letter] = true;
	}
	else { return false; }

}
return true;

}

Privacy & Terms