Skip to content

Commit

Permalink
[stdlib] Add Linked List
Browse files Browse the repository at this point in the history
Adds a `LinkedList` type which implements most of the API surface of
`List` (also grabbing the tests). This should help with filling in basic
data structures in the stdlib.

Signed-off-by: Owen Hilyard <[email protected]>
  • Loading branch information
owenhilyard committed Jan 13, 2025
1 parent a0208de commit 557b07c
Show file tree
Hide file tree
Showing 4 changed files with 1,161 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/scripts/check_licenses.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def main():
# this is the current file
continue
file_path = Path(target_paths[i])
if not file_path.read_text().startswith(LICENSE):
var text: String = file_path.read_text()
if not text.as_string_slice().startswith(LICENSE):
files_without_license.append(file_path)

if len(files_without_license) > 0:
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/collections/__init__.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ from .list import List
from .optional import Optional, OptionalReg
from .set import Set
from .vector import InlinedFixedVector
from .linked_list import LinkedList
Loading

0 comments on commit 557b07c

Please sign in to comment.