\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{macros}[2009/12/10]

\RequirePackage{amsmath}

%\newcommand{\set}[1]{\{\,#1\,\}}
%\newcommand{\set}[2][]{\{\,#2\@ifempty{#1}{}{\mid#1}\,\}}
\def\set#1{\@ifnextchar[{\setinternal#1}{\left\{#1\right\}}}
\def\setinternal#1[#2]{\left\{\,#1 \mid #2\,\right\}}
