Commit graph

145 commits

Author SHA1 Message Date
Sergiu Ivanov
c944841dc6 Add NonemptyListof. 2023-08-09 23:15:33 +02:00
Sergiu Ivanov
91b96463da in-random: Add some explicit type annotations.
Used to work without them before Racket 8.9, but hey that's
nothing special.
2023-08-07 15:11:22 +02:00
Sergiu Ivanov
9175a98a2a Add hash-replace-keys/ordered. 2023-03-12 21:15:51 +01:00
Sergiu Ivanov
d7d9274bc9 Add lambda/:, λ/:, and define/:. 2022-11-06 22:25:27 +01:00
Sergiu Ivanov
6dce7583ab Fix the syntactic context.
https://racket.discourse.group/t/wrap-a-macro-injecting-bindings-in-another-macro/1406/2
2022-10-29 23:13:44 +02:00
Sergiu Ivanov
fb56dc6589 Add and use relax-arg-type/any. 2022-09-21 00:53:12 +02:00
Sergiu Ivanov
77f2fcb58f Add define/abstract/error. 2022-08-03 01:15:24 +02:00
Sergiu Ivanov
59b3d5f6fe Add for/first/typed and for*/first/typed. 2022-06-21 00:42:56 +02:00
Sergiu Ivanov
64daec5065 Add and use assert-type in utils. 2022-04-24 14:34:57 +02:00
Sergiu Ivanov
2e8373d037 utils: Replace all casts with asserts.
https://racket.discourse.group/t/managing-cast-performance-penalty/905
2022-04-24 14:09:04 +02:00
Sergiu Ivanov
650801a6d2 Add the untyped submodule to utils. 2022-04-01 00:09:42 +02:00
Sergiu Ivanov
5aa816507d Use define-syntax-parser in auto-hash-ref/explicit. 2022-03-31 23:40:12 +02:00
Sergiu Ivanov
929bf09299 Add append-lists. 2022-03-06 20:52:33 +01:00
Sergiu Ivanov
3e16dbe3c8 Only require rackunit in the test submodule. 2022-03-05 21:33:04 +01:00
Sergiu Ivanov
fa940eb0d3 Improve the explanation of hash->list/ordered. 2022-03-05 13:44:48 +01:00
Sergiu Ivanov
97d4c18305 Switch utils to Typed Racket. 2022-03-05 13:41:40 +01:00
Sergiu Ivanov
f62d53ed8f Add an easy type to variable-mapping? and remove the untyped section. 2022-03-05 13:29:37 +01:00
Sergiu Ivanov
b026f74f39 Type 01->boolean. 2022-03-05 13:07:44 +01:00
Sergiu Ivanov
687aea5337 Type any->01. 2022-03-05 12:55:23 +01:00
Sergiu Ivanov
83b293e3e4 Type boolean-power/stream. 2022-03-05 00:20:51 +01:00
Sergiu Ivanov
347e17158d Type boolean-power. 2022-03-05 00:14:38 +01:00
Sergiu Ivanov
10f0e0ab0c Type cartesian-product/stream. 2022-03-04 18:08:49 +01:00
Sergiu Ivanov
8cd75b0fa3 utils: Add cartesian-product-2/stream. 2022-03-04 17:24:18 +01:00
Sergiu Ivanov
3918730e1a Streamline and simplify auto-hash-ref/:. 2022-02-20 18:27:36 +01:00
Sergiu Ivanov
fa015870d0 Simplify quoting and unquoting in auto-hash-ref/explicit. 2022-02-20 17:30:33 +01:00
Sergiu Ivanov
f6946d94ad Indentation. 2022-02-18 16:04:39 +01:00
Sergiu Ivanov
6679db9aa4 utils.rkt: Add a comment about an alternative implementation of lists-transpose. 2022-02-18 16:04:27 +01:00
Sergiu Ivanov
87c80bb6ef utils: Reimplement and type in-random. 2022-02-15 00:14:52 +01:00
Sergiu Ivanov
b36d8adaa4 Remove procedure-fixed-arity?.
I don't really need this function.  I think I wrote it just to see how
I can count the arity of a procedure.
2022-02-13 20:09:50 +01:00
Sergiu Ivanov
2af8d9276b utils: Typed lists-transpose. 2022-02-13 19:33:04 +01:00
Sergiu Ivanov
20cc0a27d0 utils: Type multi-split-at. 2022-02-11 00:01:07 +01:00
Sergiu Ivanov
912da811f2 utils: Type hash->list/ordered. 2022-02-10 23:37:40 +01:00
Sergiu Ivanov
9defe51ee6 utils: Make collect-by-keys and collect-by-keys/sets polymorphic. 2022-02-10 00:12:50 +01:00
Sergiu Ivanov
e01ba07724 utils: Type ht-values/list->set. 2022-02-10 00:08:49 +01:00
Sergiu Ivanov
50fb3dab59 utils: Type collect-by-key/sets. 2022-02-09 23:55:20 +01:00
Sergiu Ivanov
cf3f20097b utils: Type collect-by-key. 2022-02-09 01:07:37 +01:00
Sergiu Ivanov
002b1a8006 utils: Remove the old definition of pretty-print-set. 2022-02-08 00:11:58 +01:00
Sergiu Ivanov
0179423be9 Utils: Type update-graph. 2022-02-08 00:08:42 +01:00
Sergiu Ivanov
e1cf64a822 utils: Typed update-vertices/unweighted. 2022-02-06 23:44:03 +01:00
Sergiu Ivanov
e4f7c956d4 utils: Type pretty-print-set-sets. 2022-02-04 00:06:19 +01:00
Sergiu Ivanov
2997319f1f utils: Type pretty-print-set. 2022-02-03 23:58:23 +01:00
Sergiu Ivanov
211f39e91f utils: Type list-sets->list-strings. 2022-02-03 16:40:02 +01:00
Sergiu Ivanov
403401f085 utils: Type drop-first-last. 2022-02-03 10:55:34 +01:00
Sergiu Ivanov
ec28541c46 utils: Type read-symbol-list. 2022-02-03 10:48:51 +01:00
Sergiu Ivanov
b2f3306731 utils: Add dotit. 2022-02-03 00:09:11 +01:00
Sergiu Ivanov
746c586973 utils.rkt: Remove the left-over definitions of read-org-sexp and unorg. 2022-01-27 21:10:37 +01:00
Sergiu Ivanov
8b2bab4d9e utils: Type read-org-variable-mapping and unorgv. 2022-01-27 21:10:13 +01:00
Sergiu Ivanov
44de84de10 utils: Type unstringify-pairs. 2022-01-25 00:46:12 +01:00
Sergiu Ivanov
c1967816b4 utils/typed: Explicitly provide Variable and VariableMapping.
These are not useful outside of utils/typed as of yet, but the time
will come.
2022-01-23 16:01:09 +01:00
Sergiu Ivanov
69a7234665 utils: Type read-org-sexp and unorg. 2022-01-23 15:57:50 +01:00