Text this: Partially restricted stacks as functions