<|im_start|>system
You are a helpful AI assistant.<|im_end|>
<|im_start|>user
self.idx_to_token = list(sorted(set(['<unk>'] + reserved_tokens + [
            token for token, freq in self.token_freqs if freq >= min_freq])))
I want you to rewrite this code without using comprehension<|im_end|>
<|im_start|>assistant
Here's the rewritten code without using a list comprehension:

`self.idx_to_token = sorted(set(['<unk>'] + reserved_tokens)) for token, freq in self.token_freqs: if freq >= min_freq: self.idx_to_token.append(token)`<|im_end|>
<|im_start|>user
could you add comments to that code?<|im_end|>
<|im_start|>assistant
Sure, here's a commented version of the code:

```python

# Create a list of unique tokens sorted in alphabetical order
# The list consists of:
#   - '<unk>' token
#   - reserved_tokens
#   - all tokens with frequency greater than or equal to min_freq
self.idx_to_token = list(sorted(set(
  ['<unk>'] + reserved_tokens + map(
    lambda token, _: token,
    # Filter out all tokens whose frequency is less than min_freq
    filter(
	  lambda _, freq: freq >= min_freq,
	  self.token_freqs
	)
  )
)))
```<|im_end|>