Commit graph

143 commits

Author SHA1 Message Date
Sergiu Ivanov
9d569bd3ba utils: Type string->any. 2022-01-23 13:53:41 +01:00
Sergiu Ivanov
783000318b utils: Type stringify-variable-mapping. 2022-01-23 13:47:36 +01:00
Sergiu Ivanov
f30d9b9aa1 utils: Type any->string. 2022-01-20 19:58:06 +01:00
Sergiu Ivanov
8ffd252fc2 utils: Type extract-symbols. 2022-01-19 00:40:41 +01:00
Sergiu Ivanov
85d60c6a9b utils: Move auto-hash-ref/explicit and auto-hash-ref/: to the typed section. 2022-01-19 00:34:04 +01:00
Sergiu Ivanov
752d173279 utils: Fix some transient test errors. 2022-01-16 23:18:14 +01:00
Sergiu Ivanov
28fdc23324 utils: Type eval-with and eval1-with. 2022-01-16 23:11:00 +01:00
Sergiu Ivanov
4490cadf58 utils: Add Variable and VariableMapping. 2022-01-16 21:00:41 +01:00
Sergiu Ivanov
33ddd747c3 Start a typed section in utils. 2022-01-16 20:48:20 +01:00
Sergiu Ivanov
096f21a47f Remove hash-intersect.
This function was merged into Racket.
2021-04-29 20:50:26 +02:00
Sergiu Ivanov
ed44d3666c utils: Streamline multi-split-at. 2020-11-03 23:58:26 +01:00
Sergiu Ivanov
722b45d098 utils: Remove hash-filter.
Use for/hash with #:when or #:unless instead.
2020-11-01 23:43:23 +01:00
Sergiu Ivanov
a00f21ad18 utils,hash-filter: Say that how the comparison predicate of the result is determined. 2020-10-31 00:27:16 +01:00
Sergiu Ivanov
73756d8974 utils: Add hash-filter. 2020-10-31 00:19:38 +01:00
Sergiu Ivanov
a98ed9b325 utils: Typo in the error message in hash-intersect. 2020-08-01 23:10:32 +02:00
Sergiu Ivanov
9c9cd78eaa utils: Add hash-intersect. 2020-07-29 23:25:34 +02:00
Sergiu Ivanov
f7bd120033 utils, Additional list utilities: Also talk about hash maps. 2020-07-23 23:47:38 +02:00
Sergiu Ivanov
180810a2aa utils: 0-1 -> 01
Shorter and easier to type.
2020-06-06 08:23:55 +02:00
Sergiu Ivanov
8e6002040a utils: Add 0-1->boolean. 2020-06-05 00:03:46 +02:00
Sergiu Ivanov
83dd673df9 utils: any->boolean -> any->0-1. 2020-06-04 23:47:10 +02:00
Sergiu Ivanov
458868ea21 any->boolean: Move from networks to utils. 2020-06-03 23:42:47 +02:00
Sergiu Ivanov
90bebbded9 boolean-power,boolean-power-stream: Move from networks to utils. 2020-05-28 00:24:02 +02:00
Sergiu Ivanov
48394daa7a utils: Set the seed of the random generator in each test case. 2020-05-26 22:45:36 +02:00
Sergiu Ivanov
168b898080 utils/test: Use test-case and define instead of let. 2020-05-24 00:38:05 +02:00
Sergiu Ivanov
ff9189270e utils: Move the tests into the test submodule. 2020-05-22 23:40:26 +02:00
Sergiu Ivanov
036b9b7973 utils: Make read-org-sexp recursively apply string->any. 2020-05-06 23:03:15 +02:00
Sergiu Ivanov
502e564fc7 Add map-sexp. 2020-04-14 15:57:26 +02:00
Sergiu Ivanov
43a2f1aff0 utils: Handle Booleans when reading Org-mode tables. 2020-04-05 22:35:21 +02:00
Sergiu Ivanov
086f4c4949 utils: Add unorg. 2020-03-25 00:19:28 +01:00
Sergiu Ivanov
a8a981098f utils: unorg -> unorgv 2020-03-25 00:16:29 +01:00
Sergiu Ivanov
62ae1e3af1 utils: Convert dotit and unorg to functions. 2020-03-25 00:03:26 +01:00
Sergiu Ivanov
8bc2a582a6 utils: Remove sgfy. 2020-03-24 23:47:20 +01:00
Sergiu Ivanov
502fcb18bb utils: Simplify read-org-variable-mapping. 2020-03-24 21:17:05 +01:00
Sergiu Ivanov
f1514fffe3 utils: Add lists-transpose. 2020-03-23 22:47:52 +01:00
Sergiu Ivanov
df042493d9 utils: Add multi-split-at. 2020-03-23 22:32:39 +01:00
Sergiu Ivanov
27fa176d0f utils: Make read-org-variable-mapping return an immutable hash. 2020-03-22 21:01:51 +01:00
Sergiu Ivanov
f0ac9223e4 utils: Don't forget hash->list/ordered (the tests were broken). 2020-03-21 19:23:30 +01:00
Sergiu Ivanov
8505d2d590 utils: Add hash->list/ordered. 2020-03-21 19:16:24 +01:00
Sergiu Ivanov
435ee34acb utils: Refactor update-graph.
Make update-graph follow a little bit more the guidelines here:
https://docs.racket-lang.org/style/Choosing_the_Right_Construct.html
2020-03-20 21:42:10 +01:00
Sergiu Ivanov
34fbc516e2 utils: Add cartesian-product/stream. 2020-03-20 16:07:34 +01:00
Sergiu Ivanov
9502a9e981 utils: Add in-random. 2020-03-20 01:19:14 +01:00
Sergiu Ivanov
a8ee7cc523 utils: Add procedure-fixed-arity?. 2020-03-15 16:12:05 +01:00
Sergiu Ivanov
a3967d8bf8 utils: Move pretty-print-modalities as pretty-print-set-sets from networks. 2020-03-02 23:59:37 +01:00
Sergiu Ivanov
b5f5eb55fc utils: Move drop-first-last from rs and add list-sets->list-strings. 2020-03-02 23:39:27 +01:00
Sergiu Ivanov
42b7dce359 utils: Move read-symbol-list from rs. 2020-03-02 23:00:46 +01:00
Sergiu Ivanov
dbfa560081 utils: read-org-table -> read-org-sexp. 2020-03-02 18:42:54 +01:00
Sergiu Ivanov
29d8e152d9 utils: ht-values:list->set -> ht-values/list->set 2020-03-02 18:17:05 +01:00
Sergiu Ivanov
45db731859 utils: Make the contract of collect-by-key more specific. 2020-03-02 18:16:25 +01:00
Sergiu Ivanov
740918a542 utils: Add collect-by-key/sets. 2020-03-02 18:15:41 +01:00
Sergiu Ivanov
64ca8f4bf1 utils: Add ht-values:list->set. 2020-03-02 18:04:59 +01:00
Sergiu Ivanov
b2f686cdaa utils: Add collect-by-key. 2020-03-01 16:53:17 +01:00
Sergiu Ivanov
3f24a5be8b utils: Add pretty-print-set. 2020-03-01 15:15:52 +01:00
Sergiu Ivanov
1e524f167c utils: Add update-graph. 2020-02-29 17:21:56 +01:00
Sergiu Ivanov
018e3c6976 utils: Generalise unstringify-pairs. 2020-02-26 15:51:00 +01:00
Sergiu Ivanov
4063a21bce utils: Add update-vertices/unweighted. 2020-02-23 19:17:16 +01:00
Sergiu Ivanov
5a27469dce utils: Slightly streamline extract-symbols with match. 2020-02-23 09:00:54 +01:00
Sergiu Ivanov
9eca7bf449 Prefer for, for/list, and for/hash for iterating over hashes. 2020-02-23 08:57:50 +01:00
Sergiu Ivanov
3ff1b645d5 utils: Add dotit. 2020-02-22 21:00:34 +01:00
Sergiu Ivanov
8357f70304 utils: Generalise the comment to the section on interaction with Org-mode. 2020-02-22 20:53:13 +01:00
Sergiu Ivanov
576f204846 utils: Add unorg. 2020-02-22 19:48:39 +01:00
Sergiu Ivanov
ea77374933 utils: Make unstringify-pairs return a hash map instead of a list of pairs.
Adapt the test code accordingly.
2020-02-22 19:20:45 +01:00
Sergiu Ivanov
286a75c8ba utils: Add read-org-variable-mapping. 2020-02-22 19:15:39 +01:00
Sergiu Ivanov
eacd2a07a0 utils: Also generalise the contract of unstringify-pairs. 2020-02-22 19:14:46 +01:00
Sergiu Ivanov
a2b8df2a67 utils: Generalise unstringify-pairs to accept both proper and improper pairs. 2020-02-22 18:58:19 +01:00
Sergiu Ivanov
5b4d39a1b0 utils: Add unstringify-pairs. 2020-02-22 12:27:28 +01:00
Sergiu Ivanov
fed1f65abd utils: Add read-org-table. 2020-02-22 12:18:37 +01:00
Sergiu Ivanov
7d52533f74 utils: variable-mapping-stringify -> stringify-variable-mapping. 2020-02-22 12:12:57 +01:00
Sergiu Ivanov
1eb48bc5e2 utils: Add string->any. 2020-02-22 12:11:37 +01:00
Sergiu Ivanov
e37aeca9e7 Generalise the comment to Variable mapping and Org-mode. 2020-02-22 12:08:39 +01:00
Sergiu Ivanov
3a3c0e2d4d utils: Add sgfy. 2020-02-22 10:40:40 +01:00
Sergiu Ivanov
5ee517ec2d utils: Add a separate section for contracts in provide. 2020-02-22 10:36:03 +01:00
Sergiu Ivanov
2dd9e9e575 utils: Use hash/c instead of hash-pred.
Also remove hash-pred.
2020-02-22 10:35:01 +01:00
Sergiu Ivanov
184727f5b4 utils: Add variable-mapping-stringify and string-variable-mapping?. 2020-02-22 10:29:34 +01:00
Sergiu Ivanov
7f6c8703a9 utils: Add any->string. 2020-02-21 18:01:08 +01:00
Sergiu Ivanov
cd714773be lambda -> λ 2020-02-20 15:36:29 +01:00
Sergiu Ivanov
71f979808c hash-pred: Generalise and simplify. 2020-02-20 14:47:06 +01:00
Sergiu Ivanov
6001762cb8 utils: Restructure the exports. 2020-02-20 14:19:30 +01:00
Sergiu Ivanov
009c6109a9 utils: Add hash-pred and use it in variable-mapping? 2020-02-20 00:22:38 +01:00
Sergiu Ivanov
d94f72b1a5 utils: Export variable-mapping? 2020-02-19 23:37:32 +01:00
Sergiu Ivanov
07a9ad2ac5 utils: Restructure the provides. 2020-02-19 23:37:06 +01:00
Sergiu Ivanov
5dbdde1610 utils: Add a comment to variable-mapping? 2020-02-19 23:28:27 +01:00
Sergiu Ivanov
808516081d utils: Add variable-mapping?. 2020-02-19 23:25:00 +01:00
Sergiu Ivanov
a4deb44d10 utils: Add contracts to the functions. 2020-02-19 23:12:18 +01:00
Sergiu Ivanov
bdff8e31c9 eval-with: Explicitly say that the evaluation happens in a fresh namespace. 2020-02-19 22:51:49 +01:00
Sergiu Ivanov
404362a91c utils: Remove type annotations.
I am very early in my project, and I have already spent literal days
trying to make the types fit together.

I'm trying contracts next.
2020-02-19 22:49:50 +01:00
Sergiu Ivanov
9cbfcfca4b utils: Add extract-symbols. 2020-02-19 22:11:44 +01:00
Sergiu Ivanov
912fe95891 utils: Better highlight section titles. 2020-02-18 00:00:18 +01:00
Sergiu Ivanov
f18d47952f utils: Remove some extra code at the end of the module. 2020-02-17 23:53:38 +01:00
Sergiu Ivanov
9908df4a7b utils: Add eval-with, eval-with1, and tests. 2020-02-17 23:52:36 +01:00
Sergiu Ivanov
a385f2e464 utils: Mention that auto-hash-ref/explicit and auto-hash-ref/: take 1 body. 2020-02-17 00:27:04 +01:00
Sergiu Ivanov
cb45bea4c9 auto-hash-ref/: : Add. 2020-02-17 00:16:44 +01:00
Sergiu Ivanov
51e7ba3072 auto-hash-ref/explicit: Add an example to the comment. 2020-02-17 00:16:01 +01:00
Sergiu Ivanov
c33641fd66 utils: Start and auto-hash-ref/explicit.
Also add the tests for utils.
2020-02-16 21:39:42 +01:00