function as something phrasal verb ( see also ↑ function )
if something functions as a particular thing, it does what that type of thing normally does, or is used as that thing:
A library is functioning as a temporary hospital to cope with casualties.