Skip to content

Commit

Permalink
Remove deprecated list comprehension using {} syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Oct 11, 2014
1 parent 95f8eb0 commit 19e8ed8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions doc/manual/arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,6 @@ that the result is of type ``Float64`` by writing::

Float64[ 0.25*x[i-1] + 0.5*x[i] + 0.25*x[i+1] for i=2:length(x)-1 ]

Using curly brackets instead of square brackets is a shorthand notation for an
array of type ``Any``:

.. doctest::

julia> { i/2 for i = 1:3 }
3-element Array{Any,1}:
0.5
1.0
1.5

.. _man-array-indexing:

Indexing
Expand Down

0 comments on commit 19e8ed8

Please sign in to comment.