Skip to content

Commit

Permalink
Merge branch 'main' into advent-of-code
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke authored Dec 19, 2024
2 parents 6bc83d0 + ac6fb09 commit dbd90d1
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 35 deletions.
6 changes: 3 additions & 3 deletions packages_v5/example.candy
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,12 @@ fun all[T](list: List[T], predicate: (T) Bool) Bool {
list.allHelper(predicate, 0)
}
fun allHelper[T](list: List[T], predicate: (T) Bool, index: Int) Bool {
switch index.isLessThan(list.length()) {
true => switch predicate(list.get(index).unwrap()) {
switch list.get(index) {
some(item) => switch predicate(item) {
true => list.allHelper(predicate, index.add(1)),
false => false,
},
false => true,
none => true,
}
}
fun any[T](list: List[T], predicate: (T) Bool) Bool {
Expand Down
44 changes: 22 additions & 22 deletions vscode_extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vscode_extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"@vscode/debugadapter": "^1.65.0",
"@vscode/debugadapter": "^1.68.0",
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
Expand All @@ -258,7 +258,7 @@
"eslint-plugin-prettier": "^5.2.1",
"glob": "^10.3.10",
"mocha": "^10.8.2",
"prettier": "^3.4.1",
"prettier": "^3.4.2",
"typescript": "^5.4.5",
"vscode-test": "^1.4.0"
},
Expand Down
14 changes: 7 additions & 7 deletions vscode_extension_v4/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vscode_extension_v4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.4.1",
"prettier": "^3.4.2",
"typescript": "^5.3.3"
},
"eslintConfig": {
Expand Down

0 comments on commit dbd90d1

Please sign in to comment.