What does the word function mean?

Usage examples for function

  1. The parliament of Canada, in 1875, established a supreme court, or general court of appeal, for Canada, whose highest function is to decide questions as to the respective legislative powers of the Dominion and provincial parliaments, which are referred to it in due process of law by the subordinate courts of the provinces. – Canada under British Rule 1760-1900 by John G. Bourinot
  2. Don't you know that this is a state function, got up to welcome you and Mr Benson? – By Veldt and Kopje by William Charles Scully
  3. The marriage ceremony in the Sologne is a great and very public function. – Castles and Chateaux of Old Touraine and the Loire Country by Francis Miltoun