We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ebf5c3 commit 37f8832Copy full SHA for 37f8832
lib/elixir/pages/cheatsheets/enum-cheat.cheatmd
@@ -820,7 +820,10 @@ Negative indexes count from the back:
820
821
```elixir
822
iex> Enum.drop(cart, -1)
823
-[%{fruit: "orange", count: 6}]
+[
824
+ %{fruit: "apple", count: 3},
825
+ %{fruit: "banana", count: 1}
826
+]
827
```
828
829
### [`drop_every(enum, nth)`](`Enum.drop_every/2`)
@@ -851,10 +854,7 @@ Negative indexes count from the back:
851
854
852
855
853
856
iex> Enum.take(cart, -1)
-[
- %{fruit: "apple", count: 3},
- %{fruit: "banana", count: 1}
857
-]
+[%{fruit: "orange", count: 6}]
858
859
860
### [`take_every(enum, nth)`](`Enum.take_every/2`)
0 commit comments