Skip to content

Commit ad095ee

Browse files
authored
Update to Elixir 1.18 (#1540)
* ci and readme * replace List.zip * replace unless link * remove stray file * use 1.18.1 and otp 27.2
1 parent a6e44e8 commit ad095ee

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
runs-on: ubuntu-20.04
1818
strategy:
1919
matrix:
20-
elixir: [1.17]
21-
otp: [27.0]
20+
elixir: [1.18.1]
21+
otp: [27.2]
2222

2323
steps:
2424
- name: Checkout code
@@ -76,8 +76,6 @@ jobs:
7676
strategy:
7777
matrix:
7878
include:
79-
- elixir: '1.13.0'
80-
otp: '24.1'
8179
- elixir: '1.14.0'
8280
otp: '25.0'
8381
- elixir: '1.15.0'
@@ -86,6 +84,8 @@ jobs:
8684
otp: '26.2'
8785
- elixir: '1.17.0'
8886
otp: '27.0'
87+
- elixir: '1.18.1'
88+
otp: '27.2'
8989

9090
steps:
9191
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Setup
1010

11-
The exercises currently target Elixir versions from 1.13 to 1.17 and Erlang/OTP versions from 24 to 27. Detailed installation instructions can be found at
11+
The exercises currently target Elixir versions from 1.14 to 1.18 and Erlang/OTP versions from 25 to 27. Detailed installation instructions can be found at
1212
[https://elixir-lang.org/install.html](https://elixir-lang.org/install.html). We recommend using the [asdf version manager](https://github.com/asdf-vm/asdf) to manage multiple Elixir versions.
1313

1414
## Testing

concepts/cond/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ The `cond` conditional is usually used when there are more than two logical bran
1616

1717
[cond]: https://hexdocs.pm/elixir/case-cond-and-if.html#cond
1818
[case]: https://hexdocs.pm/elixir/case-cond-and-if.html#case
19-
[if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless
19+
[if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if

concepts/if/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ truthy?.(nil)
6666
# => true
6767
```
6868

69-
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless
69+
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if
7070
[kernel-if]: https://hexdocs.pm/elixir/Kernel.html#if/2
7171
[kernel-boolean-and]: https://hexdocs.pm/elixir/Kernel.html#and/2
7272
[kernel-boolean-or]: https://hexdocs.pm/elixir/Kernel.html#or/2

concepts/if/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ This syntax is helpful for very short expressions, but should be avoided if the
2828

2929
In Elixir, all datatypes evaluate to a _truthy_ or _falsy_ value when they are encountered in a boolean context (like an `if` expression). All data is considered _truthy_ **except** for `false` and `nil`. In particular, empty strings, the integer `0`, and empty lists are all considered _truthy_ in Elixir.
3030

31-
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless
31+
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if
3232
[kernel-if]: https://hexdocs.pm/elixir/Kernel.html#if/2

concepts/if/links.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"url": "https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless",
3+
"url": "https://hexdocs.pm/elixir/case-cond-and-if.html#if",
44
"description": "Getting Started: `if`"
55
},
66
{

exercises/concept/file-sniffer/.docs/hints.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- You can use the [`if` macro conditional][if] for binary conditions.
2222

2323
[binary-matching]: https://hexdocs.pm/elixir/binaries-strings-and-charlists.html#binaries
24-
[if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless
24+
[if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if
2525
[mfc]: https://hexdocs.pm/elixir/modules-and-functions.html#function-definition
2626
[mimetype]: https://en.wikipedia.org/wiki/Media_type
2727
[pattern-matching]: https://hexdocs.pm/elixir/pattern-matching.html#pattern-matching

exercises/concept/name-badge/.docs/hints.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222
[kernel-if]: https://hexdocs.pm/elixir/Kernel.html#if/2
2323
[getting-started-basic-strings]: https://hexdocs.pm/elixir/basic-types.html#strings
24-
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless
24+
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if
2525
[elixirschool-if]: https://elixirschool.com/en/lessons/basics/control-structures/#if-and-unless-0

exercises/concept/name-badge/.docs/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ This syntax is helpful for very short expressions, but should be avoided if the
4242
In Elixir, all datatypes evaluate to a _truthy_ or _falsy_ value when they are encountered in a boolean context (like an `if` expression). All data is considered _truthy_ **except** for `false` and `nil`. In particular, empty strings, the integer `0`, and empty lists are all considered _truthy_ in Elixir.
4343

4444
[nil-dictionary]: https://www.merriam-webster.com/dictionary/nil
45-
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if-unless
45+
[getting-started-if]: https://hexdocs.pm/elixir/case-cond-and-if.html#if
4646
[kernel-if]: https://hexdocs.pm/elixir/Kernel.html#if/2

exercises/practice/crypto-square/.meta/example.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule CryptoSquare do
1919
normalized
2020
|> String.graphemes()
2121
|> Enum.chunk_every(section_length, section_length, List.duplicate(" ", section_length))
22-
|> List.zip()
22+
|> Enum.zip()
2323
|> Enum.map(&Tuple.to_list/1)
2424
|> Enum.join(" ")
2525
end

exercises/practice/matrix/.meta/example.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule Matrix do
1414

1515
%Matrix{
1616
matrix: rows,
17-
transposed_matrix: rows |> List.zip() |> Enum.map(&Tuple.to_list/1)
17+
transposed_matrix: rows |> Enum.zip() |> Enum.map(&Tuple.to_list/1)
1818
}
1919
end
2020

exercises/practice/saddle-points/.meta/example.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule SaddlePoints do
2424
def columns(str) do
2525
str
2626
|> rows
27-
|> List.zip()
27+
|> Enum.zip()
2828
|> Enum.map(&Tuple.to_list/1)
2929
end
3030

exercises/practice/spiral-matrix/.meta/example.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ defmodule Spiral do
2727
end
2828

2929
defp transpose(matrix) do
30-
matrix |> List.zip() |> Enum.map(&Tuple.to_list/1)
30+
matrix |> Enum.zip() |> Enum.map(&Tuple.to_list/1)
3131
end
3232
end

exercises/practice/transpose/.meta/example.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule Transpose do
2626
rows
2727
|> Enum.map(fn x -> get_padded_row(x, max_length) end)
2828
|> Enum.map(&String.to_charlist/1)
29-
|> List.zip()
29+
|> Enum.zip()
3030
|> Enum.map(&Tuple.to_list/1)
3131
|> Enum.map(&List.to_string/1)
3232
|> Enum.map(fn x -> x |> String.trim_trailing("*") |> String.replace("*", " ") end)

0 commit comments

Comments
 (0)