I came across the sentence as follows, and I cannot make out its structure.
[ That was some quick thinking you did. ]
The situation is like this. "I" did a marvelous thing to help "you" in danger.
And "you" thanked me and said as above.
What's the relation between the clauses, That was some quick thinking and
you did ?
I thank you in advance.