Skip to content

Commit

Permalink
Incorporate chunk_every changes into all lessson (elixirschool#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
doomspork committed Sep 23, 2017
1 parent 0a38030 commit 90826a5
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 73 deletions.
8 changes: 4 additions & 4 deletions bg/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every

Ако се нуждаете да разбиете колекцията си на по-малки групи, то `chunk` е функцията, която най-вероятно търсите:
Ако се нуждаете да разбиете колекцията си на по-малки групи, то `chunk_every/2` е функцията, която най-вероятно търсите:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Съществуват няколко опции за `chunk`, но няма да навлизаме в тях, вижте [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) в официалните документи, за да научите повече.
Съществуват няколко опции за `chunk_every/2`, но няма да навлизаме в тях, вижте [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) в официалните документи, за да научите повече.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions bn/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every

যদি কালেকশনকে ভেঙ্গে ছোট গ্রুপ তৈরি করতে হয় তাহলে, `chunk` ফাংশনটি ই আপনার দরকার।
যদি কালেকশনকে ভেঙ্গে ছোট গ্রুপ তৈরি করতে হয় তাহলে, `chunk_every/2` ফাংশনটি ই আপনার দরকার।

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

`chunk` এর আরও কিছু অপশন আছে, কিন্তু আমরা সেগুলোতে আমরা এখন নাই যাই, আপনারা সেগুলো দেখে নিতে পারবেন এখানে,[`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) এই অফিসিয়াল ডকুমেন্ট এ ।
`chunk_every/2` এর আরও কিছু অপশন আছে, কিন্তু আমরা সেগুলোতে আমরা এখন নাই যাই, আপনারা সেগুলো দেখে নিতে পারবেন এখানে,[`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) এই অফিসিয়াল ডকুমেন্ট এ ।

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions cn/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

如果你想把你的集合拆分成小的分组,`chunk` 就是你要找的函数:
如果你想把你的集合拆分成小的分组,`chunk_every/2` 就是你要找的函数:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

`chunk` 还有其他选项,在这里不深入介绍。如果感兴趣,前往 [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) 的官方文档去了解。
`chunk_every/2` 还有其他选项,在这里不深入介绍。如果感兴趣,前往 [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) 的官方文档去了解。

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions de/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Falls du deine collection in kleinere Gruppen teilen möchtest ist `chunk` vermutlich die Funktion, nach der du suchst:
Falls du deine collection in kleinere Gruppen teilen möchtest ist `chunk_every/2` vermutlich die Funktion, nach der du suchst:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```


`chunk` hat einige Optionen, aber diese werden wir nicht besprechen. Falls du mehr darüber erfahren möchtest, sieh dir [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) in der offiziellen Dokumentation an, um mehr darüber zu erfahren.
`chunk_every/2` hat einige Optionen, aber diese werden wir nicht besprechen. Falls du mehr darüber erfahren möchtest, sieh dir [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) in der offiziellen Dokumentation an, um mehr darüber zu erfahren.

### chunk_by

Expand Down
10 changes: 5 additions & 5 deletions es/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Si necesitas dividir tu colección en pequeños grupos, `chunk` es la función que probablemente estás buscando:
Si necesitas dividir tu colección en pequeños grupos, `chunk_every/2` es la función que probablemente estás buscando:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Hay algunas opciones para `chunk` pero no vamos a entrar en detalle, revisa [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) en la documentación oficial para aprender más.
Hay algunas opciones para `chunk_every/2` pero no vamos a entrar en detalle, revisa [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) en la documentación oficial para aprender más.

### chunk_by

Expand All @@ -79,7 +79,7 @@ iex> Enum.chunk_by(["one", "two", "three", "four", "five", "six"], fn(x) -> Stri
```
### map_every

Algunas veces hacer chunk a una collección no es suficiente para lograr lo que necesitas. Si este es el caso, `map_every/3` puede ser muy útil para ejecutarce en elementos específicos si tu colección posee un orden en el que esto sea necesario o útil':
Algunas veces hacer chunk_every/2 a una collección no es suficiente para lograr lo que necesitas. Si este es el caso, `map_every/3` puede ser muy útil para ejecutarce en elementos específicos si tu colección posee un orden en el que esto sea necesario o útil':

```elixir
iex> Enum.map_every([1, 2, 3, 4], 2, fn x -> x * 2 end)
Expand Down
8 changes: 4 additions & 4 deletions fr/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Si vous devez diviser vos collections en plus petits groupes d'une taille donnée, `chunk` est la fonction que vous recherchez:
Si vous devez diviser vos collections en plus petits groupes d'une taille donnée, `chunk_every/2` est la fonction que vous recherchez:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Il existe quelques options pour `chunk` que vous pouvez consulter dans la documentation officielle de [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) de la fonction.
Il existe quelques options pour `chunk_every/2` que vous pouvez consulter dans la documentation officielle de [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) de la fonction.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions gr/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Αν χρειαστεί να σπάσουμε την συλλογή σε μικρότερα μέρη, η `chunk/2` είναι μάλλον η συνάρτηση που ψάχνουμε:
Αν χρειαστεί να σπάσουμε την συλλογή σε μικρότερα μέρη, η `chunk_every/4` είναι μάλλον η συνάρτηση που ψάχνουμε:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Yπάρχουν μερικές επιλογές για την `chunk/2` αλλά δεν θα τις αναλύσουμε, για να μάθετε περισσότερα επισκεφθείτε την [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) στα επίσημα κείμενα.
Yπάρχουν μερικές επιλογές για την `chunk_every/4` αλλά δεν θα τις αναλύσουμε, για να μάθετε περισσότερα επισκεφθείτε την [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) στα επίσημα κείμενα.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions id/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Jika anda perlu memecah collection jadi kelompok-kelompok yang lebih kecil, `chunk` adalah fungsi yang dibutuhkan:
Jika anda perlu memecah collection jadi kelompok-kelompok yang lebih kecil, `chunk_every/2` adalah fungsi yang dibutuhkan:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Ada beberapa opsi untuk `chunk` tapi kita tidak akan membahas lebih dalam, lihatlah [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) di dokumentasi resmi untuk belajar lebih jauh.
Ada beberapa opsi untuk `chunk_every/2` tapi kita tidak akan membahas lebih dalam, lihatlah [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) di dokumentasi resmi untuk belajar lebih jauh.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions it/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Se hai bisogno di dividere la tua collezione in gruppi più piccoli, `chunk` è la funzione di cui hai bisogno:
Se hai bisogno di dividere la tua collezione in gruppi più piccoli, `chunk_every/2` è la funzione di cui hai bisogno:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Esistono alcune opzioni per `chunk` ma non le tratteremo, visita [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) nella documentazione ufficiale per approfondire.
Esistono alcune opzioni per `chunk_every/2` ma non le tratteremo, visita [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) nella documentazione ufficiale per approfondire.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions jp/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

コレクションを小さなグループに分割する必要があるなら、恐らく`chunk`こそが探し求めている関数でしょう:
コレクションを小さなグループに分割する必要があるなら、恐らく`chunk_every/2`こそが探し求めている関数でしょう:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

`chunk`にはいくつかのオプションがありますが、ここでは触れませんので、詳しく学びたい場合には公式ドキュメントの[`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2)を調べてみてください。
`chunk_every/2`にはいくつかのオプションがありますが、ここでは触れませんので、詳しく学びたい場合には公式ドキュメントの[`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4)を調べてみてください。

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions ko/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

컬렉션을 작은 묶음으로 쪼개야 할 필요가 있다면, `chunk/2`가 찾고 있을 그 함수입니다.
컬렉션을 작은 묶음으로 쪼개야 할 필요가 있다면, `chunk_every/4`가 찾고 있을 그 함수입니다.

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

`chunk/2`에는 몇 가지 옵션이 있습니다만, 여기서는 이에 대해 다루지 않을 것입니다. 더 알아보고자 하신다면 [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) 공식 문서를 참고해보세요.
`chunk_every/4`에는 몇 가지 옵션이 있습니다만, 여기서는 이에 대해 다루지 않을 것입니다. 더 알아보고자 하신다면 [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) 공식 문서를 참고해보세요.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions my/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Jika anda perlu untuk menceraikan 'collection' kepada kumpulan-kumpulan kecil, gunakan fungsi `chunk`:
Jika anda perlu untuk menceraikan 'collection' kepada kumpulan-kumpulan kecil, gunakan fungsi `chunk_every/2`:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Terdapat beberapa pilihan untuk `chunk` tetapi kita tidak akan sebutkan di sini, lihat [dokumentasi rasmi `chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) untuk maklumat lebih lanjut.
Terdapat beberapa pilihan untuk `chunk_every/2` tetapi kita tidak akan sebutkan di sini, lihat [dokumentasi rasmi `chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) untuk maklumat lebih lanjut.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions no/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Hvis vi trenger å dele opp kolleksjonen i mindre deler, kan vi benytte oss av funksjonen `chunk`:
Hvis vi trenger å dele opp kolleksjonen i mindre deler, kan vi benytte oss av funksjonen `chunk_every/2`:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Det finnes flere alternativer for `chunk`, men vi blir ikke å gå igjennom dem. Se [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) i den offisielle dokumentasjonen for å lære mer.
Det finnes flere alternativer for `chunk_every/2`, men vi blir ikke å gå igjennom dem. Se [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) i den offisielle dokumentasjonen for å lære mer.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions pl/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Jeżeli chcesz podzielić kolekcję na mniejsze grupy to `chunk` jest funkcją, której zapewne szukasz:
Jeżeli chcesz podzielić kolekcję na mniejsze grupy to `chunk_every/2` jest funkcją, której zapewne szukasz:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Jest dostępne kilka wersji `chunk`, ale nie będziemy ich zgłębiać. By dowiedzieć się więcej, zajrzyj do oficjalnej dokumentacji [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2).
Jest dostępne kilka wersji `chunk_every/2`, ale nie będziemy ich zgłębiać. By dowiedzieć się więcej, zajrzyj do oficjalnej dokumentacji [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4).

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions pt/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Se você necessita quebrar sua coleção em pequenos grupos, `chunk` é a função que você provavelmente está buscando:
Se você necessita quebrar sua coleção em pequenos grupos, `chunk_every/2` é a função que você provavelmente está buscando:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Há algumas opções para `chunk` porém não vamos entrar nelas, revise [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) na documentação oficial para aprender mais.
Há algumas opções para `chunk_every/2` porém não vamos entrar nelas, revise [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) na documentação oficial para aprender mais.

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions ru/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Если требуется разбить коллекцию на меньшие группы, метод `chunk/2` — это то, что нужно:
Если требуется разбить коллекцию на меньшие группы, метод `chunk_every/4` — это то, что нужно:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Также есть несколько дополнительных опций, которые вы можете посмотреть в официальной документации: [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2).
Также есть несколько дополнительных опций, которые вы можете посмотреть в официальной документации: [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4).

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions sk/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Keď potrebujete rozbiť kolekciu do niekoľkých menších, hodí sa vám funckia `chunk`:
Keď potrebujete rozbiť kolekciu do niekoľkých menších, hodí sa vám funckia `chunk_every/2`:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Táto funkcia má niekoľko možností použitia, pozrite sa do oficiálnej dokumentácie: [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2).
Táto funkcia má niekoľko možností použitia, pozrite sa do oficiálnej dokumentácie: [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4).

### chunk_by

Expand Down
8 changes: 4 additions & 4 deletions vi/lessons/basics/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ iex> Enum.any?(["foo", "bar", "hello"], fn(s) -> String.length(s) == 5 end)
true
```

### chunk
### chunk_every/2

Để chia collection thành các nhóm nhỏ, bạn có thể dùng hàm `chunk`:
Để chia collection thành các nhóm nhỏ, bạn có thể dùng hàm `chunk_every/2`:

```elixir
iex> Enum.chunk([1, 2, 3, 4, 5, 6], 2)
iex> Enum.chunk_every([1, 2, 3, 4, 5, 6], 2)
[[1, 2], [3, 4], [5, 6]]
```

Có nhiều lựa chọn với hàm `chunk` nhưng ta sẽ không đi sâu vào chi tiết, xem trang chính thức [`chunk/2`](https://hexdocs.pm/elixir/Enum.html#chunk/2) để biết thêm chi tiết.
Có nhiều lựa chọn với hàm `chunk_every/2` nhưng ta sẽ không đi sâu vào chi tiết, xem trang chính thức [`chunk_every/4`](https://hexdocs.pm/elixir/Enum.html#chunk_every/4) để biết thêm chi tiết.

### chunk_by

Expand Down

0 comments on commit 90826a5

Please sign in to comment.