span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../index.html">NotEmptyList</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="create.html">E</a><span class="token operator">&gt;</span></div><p class="paragraph">Creates a <a href="../index.html">NotEmptyList</a> containing all the elements of the specified <a href="create.html">collection</a>, or throws an <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-arg