Commit Graph

563 Commits

Author SHA1 Message Date
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
8089585f0a core: add docstring to Map.reverse 2019-05-05 11:55:37 +02:00
hellerve
58e280c553 core: add Pair.reverse and Map.reverse 2019-05-05 11:49:30 +02:00
Erik Svedäng
cc26dbdbcf
Merge pull request #432 from hellerve/fix-287
Add Maybe.ptr and Maybe.from-ptr
2019-05-03 15:30:24 +02:00
hellerve
79a0fb77c5 core: add Maybe.ptr and Maybe.from-ptr, references #287 2019-05-03 13:49:33 +02:00
Veit Heller
64ef326a21
core: typo fix in Maybe.to-result 2019-05-02 22:33:18 +02:00
Erik Svedäng
ab16e9de5e
Merge pull request #428 from hellerve/clarify-git-loading
Clarify git loading situation in docs
2019-05-01 11:25:31 +02:00
hellerve
122038fad3 docs: clarify git loading situation 2019-05-01 00:24:29 +02:00
hellerve
a1f5b1fc2f core: add while-do macro 2019-04-30 21:42:34 +02:00
Erik Svedäng
702ca00f08
Merge pull request #417 from hellerve/optional-assert
Make all asserts optional
2019-04-21 10:53:59 +02:00
hellerve
0e7bd44dd9 core: make all asserts optional 2019-04-21 08:43:18 +02:00
Erik Svedäng
a13ebe9e78
Merge pull request #412 from hellerve/embedded-changes
Remove headers that are problematic for embedded applications
2019-04-17 22:51:26 +02:00
hellerve
1e21f2b5f6 core: remove unused else in ifdef 2019-04-17 13:52:08 +02:00
hellerve
fb9bbe1d9b core: remove some headers that are problematic for embedded applications 2019-04-17 13:47:18 +02:00
Scott Olsen
65d612939a
Fix doc for get-args-len
I was running through the docs and it seemed like get-arg was incorrectly documented based on the signature. It looks like the doc for get-args-len was reassigned to get-arg.
2019-04-16 17:49:31 -04:00
Erik Svedäng
f1c1fa1563
Merge pull request #404 from opqdonut/fix-update-with-default-docs
fix Map.update-with-default docs
2019-03-28 15:30:07 +01:00
Joel Kaasinen
4cf918f71a core/Array.carp: fix minimum and maximum for non-primitive types 2019-03-28 16:14:07 +02:00
Joel Kaasinen
0bcf6f6e72 fix Map.update-with-default docs
they were accidentally overwriting Map.update docs
2019-03-28 16:06:45 +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
9c4731fccc core: specialize Char.random again! 2019-03-26 18:19:10 +01:00
hellerve
d9c8ee4710 core: add tests for range on non-integer and update docs 2019-03-26 18:10:31 +01:00
hellerve
4bc9cb6046 core: make to-int and from-int interfaces 2019-03-26 18:08:17 +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
e3438560ac core: add String.contains? 2019-03-23 18:41:08 +01:00
Erik Svedäng
a7795edf30 Config for SDL_image too. 2019-03-22 19:21:26 +01:00
Erik Svedäng
6e113702ad Todos. 2019-03-22 19:12:33 +01:00
Erik Svedäng
636b691912 First step towards a way of locating SDL libraries on Windows. 2019-03-22 19:02:45 +01:00
Erik Svedäng
f8656b9f95 Helpfulness. 2019-03-21 14:34:09 +01:00
Erik Svedäng
0049c13111 Renamed 'defdynamic' to 'defndynamic'. 2019-03-13 18:49:48 +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
Erik Svedäng
0671cfc6cf Fixes to be able to compile SDL example 2019-03-06 23:44:43 +01:00
hellerve
f470e17f99 core: add Char.alpha?, Char.num?, and Char.alphanum? 2019-03-06 16:35:37 +01:00
Erik Svedäng
87de6fbb76 Even more fixes 2019-03-05 16:37:27 +01:00
Erik Svedäng
275c7d845a More windows tweaks. 2019-03-05 15:03:18 +01:00
Randy Valis
a0d4525723 Merge branch 'master' of https://github.com/xran-deex/Carp 2019-03-03 17:30:37 -05:00
Randy Valis
b1c78ef216 Modifications to compile on Windows 2019-03-03 17:23:13 -05: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
Erik Svedäng
7139cade84 Return () instead. 2019-02-27 14:28:41 +01:00
Erik Svedäng
8acacf4f2a Annoying crash. 2019-02-27 14:02:20 +01:00
Erik Svedäng
9cc25cdb42 SDL_gfx support 2019-02-27 14:00:06 +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