I'm in a bit of a confusion here:
I want to construct a collection that contains numbers and functions; something like this
$\{ \{1,2,3 \}, \{f,f_2 \} \}$
but I'm quite unsure about what's the correct notation for these kinds of sets. I vaguely remember that in my Linear Algebra class we'd represent Groups and Rings like this
$\{ \mathbb{Z}, + \}$
That is, a set and the operation defined on that set. But then I thought "that's kind of mixing apples with oranges, isn't it?". Maybe this is a dumb confusion, but I'd really appreciate if I could clear it up :)
When you're writing mathematics, your goal is to communicate ideas to human readers, so the only completely hard rule you have to follow is make sure your reader is not confused.
If you have a good technical use for having a set that contains both numbers and functions as elements, you can do that. However, in order not to leave your reader wondering whether there's a typo or they've misunderstood what you're doing, you should call out what you're doing in an explicit comment
... though if you need a warning like the second paragraph of this, you should probably rethink whether there's a less confusing way to present what you're doing.
If the reader wants to formalize what you're doing in pedantic formal set theory, they will have to do some extra work to make sure they're avoiding the clashes -- but since you have told them they need to do that, it's now on them to do it. (And most readers won't want to formalize your work in set theory, so putting that burden on them is not per se unreasonable).