Commit Graph

718 Commits

Author SHA1 Message Date
67e8f2dea0 Move docs into one folder 2024-08-19 00:23:02 -04:00
8363d53bd2 Update channel API to take a Where parameter 2024-08-18 23:59:13 -04:00
9e07c6adc7 Add Channel:peek() 2024-08-18 23:31:36 -04:00
1f16d63ac7 Update API for give/get 2024-08-18 23:25:35 -04:00
2e8c949fdc Rename push/pop to give/get, since it's not stack-ordered 2024-08-18 23:24:23 -04:00
b76fbd3beb Add Int:clamped() and Num:clamped() 2024-08-18 23:20:54 -04:00
0864d82c3f Update docs 2024-08-18 22:52:41 -04:00
d19cf8d9ce Document array:first() 2024-08-18 22:32:14 -04:00
7472837ee5 Add array:first(predicate:func(x:&T)->Bool)->@%T? 2024-08-18 22:28:04 -04:00
19c51194f0 Update docs 2024-08-18 21:24:21 -04:00
3fbd242ea3 Update docs 2024-08-18 21:23:28 -04:00
1fa1c063db Update index 2024-08-18 21:19:50 -04:00
2846ead8b8 More docs 2024-08-18 21:19:22 -04:00
6f3b2c073a Add enum.tag as a way to do a boolean test for whether a value has a
particular tag or not
2024-08-18 20:58:36 -04:00
967b649da2 Deprecate # operator in favor of .length and fix up some issues 2024-08-18 20:39:57 -04:00
d804b09b02 Added a .length field to arrays/sets/tables, added a .max_size field to
channels, and updated the API
2024-08-18 20:28:39 -04:00
c338c3f08c Update docs 2024-08-18 20:00:21 -04:00
c972b8ba5b Update array docs 2024-08-18 19:45:04 -04:00
d705355fc9 Update docs 2024-08-18 19:34:07 -04:00
46e0d88e88 Add README for API 2024-08-18 18:30:40 -04:00
43b4af23f8 API documentation 2024-08-18 18:23:32 -04:00
a86eba55d7 Add API docs 2024-08-18 16:51:25 -04:00
1e4f41bc28 Remove duplicated line 2024-08-18 16:33:40 -04:00
9de57eaf65 Remove some num functions 2024-08-18 16:28:52 -04:00
6ef0583868 Fix array indexing 2024-08-18 15:51:19 -04:00
a49870f810 Add primality testing and next_prime()/prev_prime() 2024-08-18 15:22:51 -04:00
f4b04a1b8c Improved syntax for dollar-string literals 2024-08-18 14:44:15 -04:00
04603308af Tweak test code 2024-08-18 12:52:53 -04:00
da4d07c665 Fix up some bigint logic issues 2024-08-18 12:47:29 -04:00
752ab8212c Split BigIntType out of IntType and switch to using enums for the size
of ints/nums
2024-08-18 11:49:51 -04:00
8b94c2c7f1 Fix array ++= item 2024-08-18 02:58:44 -04:00
d0078ab024 Handle demotion of integers when we know what the expected type ought to
be and it's just a literal.
2024-08-17 23:43:30 -04:00
09c4ff2e43 Disallow accessing type members that start with underscores unless
you're inside the type definition.
2024-08-17 21:03:04 -04:00
20b7793963 Make small integer constants actually constant 2024-08-17 15:17:41 -04:00
2383d73645 Correct the logic to prevent promoting nums to ints automatically 2024-08-17 15:14:45 -04:00
37669b1734 Bugfix for Int64$hash() being referenced 2024-08-17 15:07:22 -04:00
de31398fe4 Add table:get_or_null(key) for tables with non-null pointer values,
which lets get() keep the non-null return type
2024-08-17 15:01:01 -04:00
2c8aa4ca57 Support semicolon in {:K:V; ...} 2024-08-17 14:54:58 -04:00
3229e74d91 Remove 'const' where it caused problems 2024-08-17 14:48:56 -04:00
cbe117a6d3 Allow for top-level or namespace-level variables that are initialized
with non-constant values by the use of an initializer function and
runtime checks for whether the variable is initialized.
2024-08-17 14:41:31 -04:00
bac188ce07 Change division and modulus to use euclidean division, plus fix up a few
integer bugs
2024-08-16 14:24:20 -04:00
04714e00d7 Add Bool:random(p=0.5) 2024-08-16 14:18:23 -04:00
0f1c475bb4 More fixes for ints 2024-08-16 13:14:45 -04:00
436c6d4457 Bugfix 2024-08-16 13:13:35 -04:00
2d3c114435 Check for compile-time constant integers that require heap allocations. 2024-08-16 02:29:07 -04:00
a6be5c90ca For cached functions with no arguments, use a static var instead of a
cache table
2024-08-16 01:46:05 -04:00
52799d311e Update docs a bit 2024-08-16 01:20:46 -04:00
6d24438509 More helpful error message for table indexing 2024-08-15 14:52:41 -04:00
ce6f312c94 Add binary search test 2024-08-15 14:01:36 -04:00
7c18773011 Bugfix for closures 2024-08-15 13:59:01 -04:00