Skip to content

Commit

Permalink
Update NEWS and docs for JuliaLang#5811
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Feb 16, 2014
1 parent 321e7fe commit 2a8bfbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ Library improvements

* `isempty` now works for any iterable collection ([#5827]).

* `unique` now accepts an optional `dim` argument for finding
unique rows or columns of a matrix or regions of a
multidimensional array ([#5811]).

* `Number` improvements

* The `ImaginaryUnit` type no longer exists. Instead, `im` is of type
Expand Down
3 changes: 2 additions & 1 deletion doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,11 @@ Iterable Collections

Returns the indices of elements in collection ``a`` that appear in collection ``b``

.. function:: unique(itr)
.. function:: unique(itr[, dim])

Returns an array containing only the unique elements of the iterable ``itr``, in
the order that the first of each set of equivalent elements originally appears.
If ``dim`` is specified, returns unique regions of the array ``itr`` along ``dim``.

.. function:: reduce(op, v0, itr)

Expand Down

0 comments on commit 2a8bfbf

Please sign in to comment.