Skip to content

Commit

Permalink
let assert the pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
massivefermion authored and lpil committed Oct 16, 2023
1 parent d30da97 commit 59b650e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/book-store/.meta/example.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import gleam/list
import gleam/float

pub fn lowest_price(books: List(Int)) -> Float {
let [a, b, c, d, e] =
let assert [a, b, c, d, e] =
books
|> list.fold(
[#(1, 0), #(2, 0), #(3, 0), #(4, 0), #(5, 0)],
Expand Down

0 comments on commit 59b650e

Please sign in to comment.