You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ let x = [ 0, :a, 2]
167
167
let y = [ :3 ]
168
168
```
169
169
170
-
Accessing data in lists can be accomplished in a few ways. You can itterate over a list:
170
+
Accessing data in lists can be accomplished in a few ways. You can iterate over a list:
171
171
```
172
172
let x = [ 1, 2, 3 ];
173
173
@@ -231,7 +231,7 @@ x += [[ 4, 5, 6 ]];
231
231
232
232
### Files and Binary
233
233
234
-
File io is a core feature of Sack, and as such it has it's own syntax.
234
+
File IO is a core feature of Sack, and as such it has it's own syntax.
235
235
236
236
Files are opened using the `open` keyword, and closed using the `close` keyword. There are multiple modes for opening files, and they are as follows:
237
237
```
@@ -473,7 +473,7 @@ The following are valid logical operators in sack:
473
473
# Not (inverts a boolean value)
474
474
!
475
475
```
476
-
By extension `<=` and `>=` are also valid since they are a combination of the geater than and less than operators with the equal operator.
476
+
By extension `<=` and `>=` are also valid since they are a combination of the greater than and less than operators with the equal operator.
477
477
Operators which check for a condition return a boolean value `true` or `false`.
478
478
479
479
### Comments
@@ -571,15 +571,15 @@ if ( b in a ) {
571
571
572
572
Invalid types will result in an error:
573
573
```
574
-
let a = "fourty-seven";
574
+
let a = "forty-seven";
575
575
let b = 47;
576
576
577
577
# This will result in an error
578
578
print ( b in a );
579
579
```
580
580
581
581
### Loops
582
-
A loop will itterate between a range of numbers starting at the first number and ending at the last for example `range( 1, 5 )` is equal to `[1, 2, 3, 4, 5]`
582
+
A loop will iterate between a range of numbers starting at the first number and ending at the last for example `range( 1, 5 )` is equal to `[1, 2, 3, 4, 5]`
583
583
584
584
The following is an example of valid loop in range syntax:
585
585
```
@@ -599,7 +599,7 @@ loop ( while a < 100 ) {
599
599
}
600
600
```
601
601
602
-
The keywords `break` and `continue` will exit the loop, or continue to the next itteration respectively.
602
+
The keywords `break` and `continue` will exit the loop, or continue to the next iteration respectively.
603
603
604
604
```
605
605
# Looping from 1 to 10, but breaking out at 5
@@ -712,7 +712,7 @@ helloworld();
712
712
```
713
713
714
714
You can import modules that are in the current directory without specifying the path to the file, else you will need to specify the path.
715
-
By default sack first tries to import modlues ending with ".sk", if that fails it will look for files ending with ".sack", if that also fails it will cause an error on runtime.
715
+
By default sack first tries to import modules ending with ".sk", if that fails it will look for files ending with ".sack", if that also fails it will cause an error on runtime.
0 commit comments