-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
275 changed files
with
4,788 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
globs: | ||
- "concepts/**/*.md" | ||
- "exercises/concept/**/*.md" | ||
- "exercises/practice/*/.docs/{hints.md,*.append.md}" | ||
|
||
config: | ||
MD001: true | ||
MD002: true | ||
MD003: | ||
style: "atx" | ||
MD004: | ||
style: dash | ||
MD013: false | ||
MD033: false | ||
MD034: | ||
severity: error | ||
MD054: | ||
autolink: false | ||
inline: false | ||
shortcut: false | ||
collapsed: false | ||
|
||
customRules: | ||
- "single-sentence-per-line-rule.js" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
./bin/lint_markdown.sh --fix | ||
./bin/configlet fmt -uy | ||
./bin/format_exercises.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
npx markdownlint-cli2 docs/*.md concepts/**/*.md | ||
npx markdownlint-cli2 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# Introduction | ||
|
||
In Cairo, arrays are fundamental data structures designed to store collections of elements of the same type in a structured manner. Similar to lists in other programming languages, each element in an array is accessed by its index, allowing for efficient retrieval and manipulation. | ||
In Cairo, arrays are fundamental data structures designed to store collections of elements of the same type in a structured manner. | ||
Similar to lists in other programming languages, each element in an array is accessed by its index, allowing for efficient retrieval and manipulation. | ||
|
||
Cairo arrays are immutable data structures. Elements can only be appended to the end or removed from the front of the array. This design ensures data integrity and stability, aligning with Cairo's approach to memory management. Arrays are initialized using `ArrayTrait::new()` and support type-specific declarations for element storage. Accessing elements can be done with `get()` or `at()` methods, as well as using the subscripting operator `arr[index]`. You can only remove elements from the front of an array by using the `pop_front()` function. These characteristics make Cairo arrays suitable for structured data storage and retrieval tasks. | ||
Cairo arrays are immutable data structures. | ||
Elements can only be appended to the end or removed from the front of the array. | ||
This design ensures data integrity and stability, aligning with Cairo's approach to memory management. | ||
Arrays are initialized using `ArrayTrait::new()` and support type-specific declarations for element storage. | ||
Accessing elements can be done with `get()` or `at()` methods, as well as using the subscripting operator `arr[index]`. | ||
You can only remove elements from the front of an array by using the `pop_front()` function. | ||
These characteristics make Cairo arrays suitable for structured data storage and retrieval tasks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Introduction | ||
|
||
Control flow in Cairo, through constructs like `if` expressions and loops, allows developers to direct the execution of their programs based on conditional logic or repetitive tasks. `if` expressions enable branching based on whether conditions evaluate to `true` or `false`, while loops (`loop`, `while`, `for`) facilitate repeated execution of code blocks until specific criteria are met. These constructs are crucial for implementing logic, iteration, and handling multiple conditions concisely, making them essential tools for writing efficient and dynamic code in Cairo. | ||
Control flow in Cairo, through constructs like `if` expressions and loops, allows developers to direct the execution of their programs based on conditional logic or repetitive tasks. | ||
`if` expressions enable branching based on whether conditions evaluate to `true` or `false`, while loops (`loop`, `while`, `for`) facilitate repeated execution of code blocks until specific criteria are met. | ||
These constructs are crucial for implementing logic, iteration, and handling multiple conditions concisely, making them essential tools for writing efficient and dynamic code in Cairo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"blurb": "<todo>", | ||
"authors": [ | ||
"0xNeshi" | ||
"<your_gh_username>" | ||
], | ||
"contributors": [] | ||
} |
Oops, something went wrong.