hellerve
|
c87893dd14
|
core: make map’s higher order functions non-owning
|
2019-05-27 18:42:25 +02:00 |
|
hellerve
|
9010a5c2ee
|
core: add Map.put! and Set.put!
|
2019-05-22 20:13:38 +02:00 |
|
hellerve
|
58e280c553
|
core: add Pair.reverse and Map.reverse
|
2019-05-05 11:49:30 +02:00 |
|
Erik Svedäng
|
32f14cd9e3
|
Work in progress...
|
2019-03-26 10:23:27 +01:00 |
|
hellerve
|
e54ead1922
|
all: various sumtype fixes
- add get-maybe to Map
- add tests
- fix emitter error on ref types
|
2019-02-13 11:46:20 +01:00 |
|
Erik Svedäng
|
de1439c927
|
Merge pull request #368 from opqdonut/map-set-all
Set.all?, Map.all? and Map.=
|
2018-12-20 14:29:39 +01:00 |
|
Joel Kaasinen
|
5bb17b82ee
|
core/Map.carp: Map.all? and Map.=
|
2018-12-18 16:17:08 +02:00 |
|
Joel Kaasinen
|
7aae7d55bd
|
core/Map.carp: Set.all?
|
2018-12-18 15:58:58 +02:00 |
|
Joel Kaasinen
|
7f7f7c26b1
|
core/Map.carp: get-with-default
nice for types with no (zero) defined
|
2018-12-18 14:57:02 +02:00 |
|
Joel Kaasinen
|
a5e46dc71b
|
core/Map.carp: set operations
- equality
- subset
- intersection
- union
- difference
|
2018-12-13 08:33:42 +02:00 |
|
Joel Kaasinen
|
1755d673ee
|
add test for Set Int stringification
|
2018-12-12 08:21:16 +02:00 |
|
Joel Kaasinen
|
8020434ace
|
core/Map.carp: hash for Pair
Algorithm from https://stackoverflow.com/questions/1646807/quick-and-simple-hash-code-combinations
|
2018-12-11 17:37:51 +02:00 |
|
Joel Kaasinen
|
31824bcadb
|
Map.to-array and Set.to-array functions, equality for non-ref Pairs
|
2018-12-07 21:28:36 +02:00 |
|
Joel Kaasinen
|
10a9de39da
|
core/Map.carp: Map.update and Map.update-with-default functions
|
2018-12-07 13:41:17 +02:00 |
|
Joel Kaasinen
|
845fd6409e
|
core/Map.carp: Map.endo-map function
|
2018-12-07 13:27:48 +02:00 |
|
Joel Kaasinen
|
f28b0f9197
|
core/Map.carp: Set.reduce function
|
2018-12-07 13:17:58 +02:00 |
|
Joel Kaasinen
|
afd7dec6a8
|
core/Map.carp: Map.vals and Map.keys functions
|
2018-12-07 13:04:18 +02:00 |
|
Joel Kaasinen
|
6cf17937d7
|
core/Map.carp: add Map.kv-reduce function
|
2018-12-07 12:55:27 +02:00 |
|
Joel Kaasinen
|
a473b54e06
|
fix Map.put and Set.put
|
2018-12-03 20:45:23 +02:00 |
|
Joel Kaasinen
|
cfb61847cb
|
fix Map and Set behaviour for negative hash values
fixes #335
- add new Int.positive-mod function
- use it for Map and Set operations
- add tests
|
2018-12-01 18:01:02 +02:00 |
|
hellerve
|
ca22bfc8cd
|
test: use deftest everywhere
|
2018-11-08 07:16:52 +01:00 |
|
hellerve
|
e887a5633b
|
core: remove put! and remove! from map and set
|
2018-10-31 13:42:05 +01:00 |
|
hellerve
|
16e2d7fb85
|
core: add remove! and put! and make reduce take ownership
|
2018-10-31 11:33:29 +01:00 |
|
Craig Roy
|
92501770e6
|
Print results as part of test macro
|
2018-09-13 00:13:03 +01:00 |
|
hellerve
|
012f048f7f
|
core: change from str to prn in map stringification
|
2018-08-07 09:32:35 +02:00 |
|
hellerve
|
57e2afe332
|
core: add tests for map and set stringification
|
2018-08-07 09:32:35 +02:00 |
|
hellerve
|
d95c28ad5d
|
core: fixed set and tests
|
2018-08-07 09:32:32 +02:00 |
|
hellerve
|
913e8e3892
|
core: add map
|
2018-06-11 20:50:54 +02:00 |
|