A function that creates a list with each element in the environment as a list slot

generic_assignment(list__, element_type, element_value)

Arguments

list__
  • the list you want to affix objects to slots in

element_type
  • a vector with the names of the slots you want the value to be assigned to in the list

element_value
  • a vector with the values of the slots you are adding to the list

Value

the list with added slots