Ayaz Hafiz
b4e7ae0654
Make sure to part decimal part of a float after decimal point
2022-08-03 10:13:39 -05:00
Folkert de Vries
b4880ae66f
Merge pull request #3689 from rtfeldman/fix/3685-Str.splitLast
...
Fix Str.splitLast for needle positioned last
2022-08-03 13:27:25 +02:00
Mostly Void
d6a54710d6
Fix Str.splitLast
...
This fixes the behavior of the function when the needle is positioned
last in the haystack.
» Str.splitLast "ehllo,," ",,"
Ok { after: "", before: "ehllo" } : Result { after : Str, before : Str } [NotFound]*
2022-08-03 11:30:49 +05:30
Ayaz Hafiz
5ba646d3e0
Remove decodeElems and handle end-of-list appropriately
2022-08-01 11:07:27 -05:00
Ayaz Hafiz
ffb7f7a001
Naive decoding of lists
2022-08-01 10:12:45 -05:00
Ayaz Hafiz
03463a2a5e
Naive string decoding
2022-08-01 09:56:59 -05:00
Ayaz Hafiz
d1880cae76
Add a comment
2022-08-01 09:50:18 -05:00
Ayaz Hafiz
e1c8b3c9b0
Format Json.roc
2022-08-01 09:48:38 -05:00
Ayaz Hafiz
c85c865b05
Bool decoding
2022-08-01 09:47:42 -05:00
Ayaz Hafiz
a00953128d
Use asciiByte helper
2022-08-01 09:47:35 -05:00
Ayaz Hafiz
e00ebbead7
Properly parse floats
2022-08-01 09:32:05 -05:00
Ayaz Hafiz
f06ed1a647
Add FIXME comments
2022-08-01 09:08:19 -05:00
Ayaz Hafiz
6a4a3e2c60
Expose Json.fromUtf8
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
10ce5d0615
Implement Json fromBytes without let-generalization
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
3fdde9e8f0
Stub out a decoder implementation for Json
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
623f5698ac
Qualify Encode.custom
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
df3ee468c6
Remove unneeded imports
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
b602c1fa2f
Qualify JSON encode names
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
41af6d96a8
Remove unnecessary comment from Json module
2022-08-01 08:09:23 -05:00
Ayaz Hafiz
fc71e3df04
Add Decode to the load graph
2022-08-01 08:09:22 -05:00
Ayaz Hafiz
de1588e760
Add the Decode module
2022-08-01 08:09:22 -05:00
Richard Feldman
4a371b9524
roc format List.roc
2022-07-25 19:15:39 +02:00
Richard Feldman
f216224495
Fix off-by-one in List.splitFirst and splitLast
2022-07-25 19:15:38 +02:00
Richard Feldman
6f1932eae4
Fix endsWith off-by-one error
2022-07-25 19:15:38 +02:00
Richard Feldman
d60ad6b5af
Fix iterateBackwards
2022-07-25 19:15:36 +02:00
Richard Feldman
1c2047fbeb
Rename an argument
2022-07-25 19:15:36 +02:00
Richard Feldman
3991bd31d6
Don't qualify iterateBackwards
2022-07-25 19:15:36 +02:00
Richard Feldman
038e999009
roc format List.roc
2022-07-25 19:15:35 +02:00
Richard Feldman
6a3694cf8f
Fix some errors and warnings
2022-07-25 19:15:35 +02:00
Richard Feldman
bae99413dd
Expose List.startsWith and List.endsWith
2022-07-25 19:15:34 +02:00
Richard Feldman
a5384effee
Improve some doc comments
2022-07-25 19:15:33 +02:00
Richard Feldman
c87f2fdee1
Add List.splitFirst and List.splitLast
2022-07-25 19:15:33 +02:00
Richard Feldman
87f03d1f9f
Add List.findLast and findLastIndex
2022-07-25 19:15:32 +02:00
Richard Feldman
46abf539bf
Drop unnecessary parens
2022-07-25 19:15:32 +02:00
Richard Feldman
f3b8025d8d
Rename List.find and findIndex to include 'First'
2022-07-25 19:15:32 +02:00
Richard Feldman
661376958c
Add List.startsWith and List.endsWith
2022-07-25 19:15:31 +02:00
Ayaz Hafiz
3a57af8731
Format Json.roc
2022-07-19 14:30:20 -04:00
Ayaz Hafiz
f3105eca6e
Format Json.roc
2022-07-18 22:14:39 -04:00
Ayaz Hafiz
d2da395619
Syntactic ability links in solve
2022-07-18 18:33:28 -04:00
Ayaz
d5f36a6780
Merge pull request #3568 from rtfeldman/list-maptry
2022-07-18 15:22:38 -05:00
Richard Feldman
fd65f12cad
Merge pull request #3567 from rtfeldman/result-try
...
Rename `Result.after` to `Result.try`, `Result.afterErr` to `Result.onErr`
2022-07-17 22:47:02 -04:00
Ayaz
d354dd177a
Merge pull request #3564 from rtfeldman/fix-json
...
JSON doesn't allow trailing commas
2022-07-17 21:43:01 -05:00
Richard Feldman
b92a2b8dad
Clarify docs a bit
2022-07-17 21:54:36 -04:00
Richard Feldman
08ead32be9
Add List.mapTry
2022-07-17 21:53:01 -04:00
Richard Feldman
145bd8b4a2
Rename Result.afterErr to Result.onErr
2022-07-17 21:37:32 -04:00
Richard Feldman
0acab0eef3
Rename Result.after to Result.try
2022-07-17 17:25:50 -04:00
Richard Feldman
518b21c3f8
Rename Json.format to Json.toUtf8
2022-07-17 15:21:27 -04:00
Richard Feldman
4af506c530
JSON doesn't allow trailing commas
2022-07-17 15:18:52 -04:00
Richard Feldman
31f7d72ce0
Merge pull request #3529 from rtfeldman/derive-lists
...
Derive encoding for lists
2022-07-17 14:28:44 -04:00
Richard Feldman
f575807834
Merge remote-tracking branch 'origin/trunk' into outdent-infix
2022-07-16 16:08:36 -04:00