Skip to content

Commit 31c26ce

Browse files
committedJul 16, 2024
update dependencies
1 parent cb03984 commit 31c26ce

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

Diff for: ‎manifest.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# You typically do not need to edit this file
33

44
packages = [
5-
{ name = "gleam_stdlib", version = "0.36.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "C0D14D807FEC6F8A08A7C9EF8DFDE6AE5C10E40E21325B2B29365965D82EB3D4" },
6-
{ name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
5+
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
6+
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
77
]
88

99
[requirements]

Diff for: ‎src/pears/input.gleam

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//// This module defines the `Input(i)` type that represents a list of tokens that can be consumed by a parser.
22
//// It also provides some helper functions for working with `Input(i)`.
33

4+
import gleam/iterator
45
import gleam/list
56
import gleam/option.{type Option}
67

@@ -11,7 +12,8 @@ pub type Input(i) {
1112

1213
pub fn get(input: Input(a)) -> Option(a) {
1314
input.tokens
14-
|> list.at(input.cursor)
15+
|> iterator.from_list()
16+
|> iterator.at(input.cursor)
1517
|> option.from_result()
1618
}
1719

0 commit comments

Comments
 (0)