GrayJack
c41ecf79ec
Fix memory test for Array.index-of
2019-05-14 20:14:14 -03:00
GrayJack
353f8470ed
Fix tests on memory.carp, Modify Statistics module as Veit Heller
...
sugested
2019-05-14 20:11:19 -03:00
GrayJack
25e80273ff
Fix memory test using the new version of the Array function
...
Tried to fix problems on Statistics.carp with the new Array functions
2019-05-14 13:26:19 -03:00
GrayJack
d18fa71afb
Made Array.index-of safe
2019-05-14 06:48:26 -03:00
GrayJack
783167bb27
Modify the functions Array.maximum and Array.minimum to be safe
...
- Also made zero function for Pair so we don't lose compatibility with
it
2019-05-13 21:41:45 -03:00
GrayJack
caf01bff35
Made Array.find safe wrapping in a Result
...
- Also some typo fixes in Array module doc strings
2019-05-13 14:47:03 -03:00
Erik Svedäng
9b6e3636a8
Merge pull request #439 from hellerve/safe-read
...
Safe IO.read->EOF
2019-05-10 11:26:40 +02:00
hellerve
992b0c5fc5
core: fix IO.read->EOF
2019-05-10 11:21:46 +02:00
Erik Svedäng
8bc50fa0c9
Merge pull request #436 from hellerve/reverse
...
Add Pair.reverse and Map.reverse
2019-05-05 12:19:54 +02:00
hellerve
58e280c553
core: add Pair.reverse and Map.reverse
2019-05-05 11:49:30 +02:00
hellerve
79a0fb77c5
core: add Maybe.ptr and Maybe.from-ptr, references #287
2019-05-03 13:49:33 +02:00
hellerve
a1f5b1fc2f
core: add while-do macro
2019-04-30 21:42:34 +02:00
hellerve
3083a1e5f1
core: add Symbol.join
2019-04-10 08:25:54 +02:00
Joel Kaasinen
4cf918f71a
core/Array.carp: fix minimum and maximum for non-primitive types
2019-03-28 16:14:07 +02:00
Erik Svedäng
a4fb6d3177
Merge pull request #401 from hellerve/master
...
Make `Array.range` more general
2019-03-26 22:38:13 +01:00
hellerve
d9c8ee4710
core: add tests for range on non-integer and update docs
2019-03-26 18:10:31 +01:00
Erik Svedäng
88e2896cb7
Tests run.
2019-03-26 14:30:00 +01:00
Erik Svedäng
32f14cd9e3
Work in progress...
2019-03-26 10:23:27 +01:00
Erik Svedäng
f8e96749e4
Merge pull request #399 from hellerve/string-contains
...
Add String.contains?
2019-03-25 08:23:37 +01:00
hellerve
f5488191a4
core: add tests for String.contains?
2019-03-23 18:46:42 +01:00
Erik Svedäng
5ad6e94579
The '(load)' command will work relative to the file containing it, if
...
put into a file.
2019-03-22 20:33:06 +01:00
Erik Svedäng
2113cda53d
Respect --check flag for EvalErrors inside Expand module too.
2019-03-22 11:07:21 +01:00
Erik Svedäng
dedeb6a38d
Respect --check flag when reporting Eval errors.
2019-03-22 11:00:23 +01:00
Erik Svedäng
c5871b1b9d
Fix expected test.
2019-03-22 08:29:49 +01:00
Erik Svedäng
0049c13111
Renamed 'defdynamic' to 'defndynamic'.
2019-03-13 18:49:48 +01:00
hellerve
e5966eaa7e
compiler: honor filepathprintlength in evalerror
2019-03-13 11:51:19 +01:00
Erik Svedäng
4feb44ae19
Merge pull request #391 from hellerve/extra-char-fns
...
Add Char.alpha?, Char.num?, and Char.alphanum?
2019-03-07 13:54:59 +01:00
Erik Svedäng
9941a85334
Merge pull request #387 from hellerve/fix-int-max
...
core: fix Int.MAX and Int.MIN references
2019-03-07 13:51:28 +01:00
hellerve
f470e17f99
core: add Char.alpha?, Char.num?, and Char.alphanum?
2019-03-06 16:35:37 +01:00
hellerve
6e685fc0d6
core: fix Int.MAX and Int.MIN referenes
2019-02-28 15:00:21 +01:00
hellerve
04d5e3a5ae
Merge https://github.com/carp-lang/carp into sumtypes
...
* https://github.com/carp-lang/carp :
compiler: add two special symbols to patterns
Return () instead.
Annoying crash.
SDL_gfx support
2019-02-28 14:20:35 +01:00
hellerve
bf80fade94
compiler: add two special symbols to patterns
2019-02-28 13:27:52 +01:00
hellerve
9848e8fb34
multiple fixes:
...
- don’t do function copying in benchmarking
- fix the array_update benchmark
- add Filepath.file-from-path
- add tests for the `Filepath` module
- reformat a lot of documentation
2019-02-15 14:48:49 +01:00
hellerve
e24fd38258
sumtypes: multiple fixes
...
- add test suite for Result
- make Array a little safer overall
- document Maybe and Result comprehensively
- rework Array documentation
2019-02-15 10:24:47 +01:00
hellerve
ae62154afc
core: add result draft
2019-02-13 19:31:47 +01:00
hellerve
4a84e36924
docs: new map functions
2019-02-13 11:46:22 +01:00
hellerve
62d08d28ef
test: fix tests for new maybe api
2019-02-13 11:46:22 +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
hellerve
c6a440d477
core: extend maybe and rework vector with it
2019-02-13 11:42:16 +01:00
Erik Svedäng
7a0ae9de7f
More bugfixes concerning wildcards.
2019-02-12 23:01:33 +01:00
Erik Svedäng
8d45cfb7ec
Kinda support for wildcards, but a lot of the code is a mess
...
unfortunately. Will fix after sleeping...
2019-02-12 00:20:20 +01:00
Erik Svedäng
d5fed5e4f9
More example.
2019-02-11 16:28:42 +01:00
Erik Svedäng
c2c0c19575
Big refactor of the sumtype system, using "normal" symbol resolution.
2019-02-11 16:22:44 +01:00
Erik Svedäng
7279cd3158
Merge remote-tracking branch 'refs/remotes/origin/master' into sumtypes
2019-02-08 10:26:03 +01:00
Erik Svedäng
1cef3d6836
Merge pull request #378 from hellerve/copy-filter
...
memory test: test shrinking
2019-02-04 15:25:30 +01:00
Erik Svedäng
8c80c9d004
Merge branch 'master' into sumtypes
2019-02-02 20:08:45 +01:00
hellerve
6203150229
memory test: test shrinking
2019-02-02 20:06:06 +01:00
Erik Svedäng
489e8b0b33
Merge pull request #376 from hellerve/copy-filter
...
Add copy-filter and rename filter to endo-filter
2019-02-02 19:53:39 +01:00
Erik Svedäng
c07d806545
Merge branch 'sumtypes' of https://github.com/carp-lang/Carp into sumtypes
2019-02-02 19:41:20 +01:00
hellerve
f31474cecb
all: (see #317 )
...
- add copy-filter
- rename filter to endo-filter
2019-02-02 10:32:26 +01:00