@jaytechsolutions/jts-go 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -2
- package/bin/win32/jts.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# JTS Development Kit v1.0
|
|
1
|
+
# JTS Development Kit v1.0.1
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<b>JTS GO — The Easiest Programming Language to Learn</b><br>
|
|
@@ -146,6 +146,35 @@ end
|
|
|
146
146
|
print(factorial(5)) # 120
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
+
### Lists
|
|
150
|
+
```jts
|
|
151
|
+
# Create a list
|
|
152
|
+
nums = [1, 2, 3, 4, 5]
|
|
153
|
+
|
|
154
|
+
# Access elements
|
|
155
|
+
print(nums[0]) # 1
|
|
156
|
+
print(nums[2]) # 3
|
|
157
|
+
|
|
158
|
+
# Modify elements
|
|
159
|
+
nums[0] = 99
|
|
160
|
+
|
|
161
|
+
# Append
|
|
162
|
+
append(nums, 6)
|
|
163
|
+
|
|
164
|
+
# Length
|
|
165
|
+
print(len(nums)) # 6
|
|
166
|
+
|
|
167
|
+
# Type
|
|
168
|
+
print(type(nums)) # list
|
|
169
|
+
|
|
170
|
+
# Mixed types
|
|
171
|
+
mixed = ["hello", 42, true]
|
|
172
|
+
print(mixed) # [hello, 42, true]
|
|
173
|
+
|
|
174
|
+
# Empty list
|
|
175
|
+
empty = []
|
|
176
|
+
```
|
|
177
|
+
|
|
149
178
|
## Example Programs
|
|
150
179
|
|
|
151
180
|
| Program | Description |
|
|
@@ -158,6 +187,7 @@ print(factorial(5)) # 120
|
|
|
158
187
|
| [functions.jts](examples/functions.jts) | Functions and parameters |
|
|
159
188
|
| [factorial.jts](examples/factorial.jts) | Recursive factorial |
|
|
160
189
|
| [fibonacci.jts](examples/fibonacci.jts) | Recursive Fibonacci |
|
|
190
|
+
| [lists.jts](examples/lists.jts) | Lists and arrays |
|
|
161
191
|
|
|
162
192
|
## Documentation
|
|
163
193
|
|
|
@@ -186,5 +216,5 @@ Licensed under the [Apache License 2.0](LICENSE).
|
|
|
186
216
|
|
|
187
217
|
<p align="center">
|
|
188
218
|
Made with passion by <b>Aswinjay</b><br>
|
|
189
|
-
JTS GO v1.0 — 2025
|
|
219
|
+
JTS GO v1.0.1 — 2025
|
|
190
220
|
</p>
|
package/bin/win32/jts.exe
CHANGED
|
Binary file
|