Import clauses

import users._  // import everything from the users package
import users.User  // import the class User
import users.{User, UserPreferences}  // Only imports selected members
import users.{UserPreferences => UPrefs}  // import and rename for convenience

Are for accessing members (classes, traits, functions, etc.) in other packages.

Import clauses — Structure map

Clickable & Draggable!

Import clauses — Related pages: