Use inner list compreensions with variable visibility