faldor20
d95da9dd5b
completions working
2024-03-11 11:10:35 +10:00
Anton-4
9a6eefdbcf
fix sortAsc sortDesc docs
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-03-02 19:33:39 +01:00
Brendan Hansknecht
26e21addee
Merge pull request #6545 from roc-lang/approx-eq-update
...
Update Num.isApproxEq
2024-03-01 18:06:04 -08:00
Brendan Hansknecht
f79e93cfdc
Update Num.isApproxEq
...
The function is now symmetric and using max instead of sum to separate the absolute and relative tolerance.
Reason for change here: 419553929
2024-02-29 11:30:01 -08:00
Anton-4
b74653db8e
Merge pull request #6533 from lukewilliamboswell/encode-docs
...
Docs for `Encode` builtin
2024-02-23 15:50:52 +01:00
Anton-4
67cfe7ece0
List.concat -> List.append
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 14:21:43 +01:00
Anton-4
af389a9792
minor improvement
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 14:08:39 +01:00
Anton-4
df58a4ff07
fix expects
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 13:56:34 +01:00
Luke Boswell
a671c4cdc9
clean up
2024-02-22 19:15:01 +11:00
Luke Boswell
921c90a460
roc-gpt attempt
2024-02-22 19:04:18 +11:00
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
...
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat
2024-02-11 12:26:36 -05:00
Anton-4
3c7a834da1
update to new interpolation syntax
2024-02-02 13:39:10 +01:00
Richard Feldman
aabd95404f
Merge remote-tracking branch 'origin/main' into remove-nat
2024-01-30 21:42:45 -05:00
Kiryl Dziamura
b3dfdb562b
crash on rem div by zero
2024-01-30 11:12:02 +01:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat
2024-01-29 07:23:58 -05:00
Folkert
979128cf32
make division by zero (integer) not trap
2024-01-29 01:38:32 +01:00
Richard Feldman
3be96e52d8
roc format
2024-01-28 16:35:57 -05:00
Folkert
d4cac5cdd9
dict: use Num.mulWrap to prevent branches
2024-01-28 16:53:23 +01:00
Agus Zubiaga
eb68bf943a
Merge branch 'main' into module-params
2024-01-27 09:36:20 -03:00
Richard Feldman
eb3dc3d582
Drop unused import in Hash.roc
2024-01-26 16:23:20 -05:00
Richard Feldman
fb84c9487d
Remove Num.Natural, Num.toNat, and Num.toNatChecked
2024-01-26 16:23:20 -05:00
Richard Feldman
9518d76cd8
Remove Num.bytesTo___ functions
...
These may be reintroduced in some form later,
but they don't handle endianness and it's not
clear builtins are the right place for them.
2024-01-26 16:23:19 -05:00
Richard Feldman
ef634ba8e4
Remove Nat from documentation
2024-01-26 16:22:42 -05:00
Richard Feldman
c4497f2c1c
Remove Nat from Num
2024-01-26 16:19:51 -05:00
Richard Feldman
502b0fddf2
Remove Nat from Hash, Inspect, Encode, Decode
2024-01-26 16:17:05 -05:00
Richard Feldman
6140c5023b
Remove Nat from TotallyNotJson
2024-01-26 16:05:57 -05:00
Richard Feldman
16ddb16177
Update Dict to no longer use Nat
2024-01-26 16:05:57 -05:00
Richard Feldman
77a10986d6
Update Set to no longer use Nat
2024-01-26 16:05:57 -05:00
Richard Feldman
97f21e65fe
Update ListLen and ListGetUnsafe to not use Nat
2024-01-26 16:05:56 -05:00
Richard Feldman
2e72021a74
Drop some obsolete U64 conversions in Str
2024-01-26 16:05:56 -05:00
Richard Feldman
a1656381c5
Update some Result docs
2024-01-26 16:00:33 -05:00
Richard Feldman
9e3cff61d7
Remove Nat uses from Str
2024-01-26 16:00:33 -05:00
Brian Teague
4499f8c6f4
isApproxEq function
2024-01-23 21:06:35 -05:00
Richard Feldman
a8b271c8d5
Copy tweaks to Str docs
2024-01-23 00:05:06 -05:00
Richard Feldman
2970fc4384
Merge remote-tracking branch 'origin/main' into str-unicode
2024-01-21 12:30:16 -05:00
Folkert
f1ffc36efe
add List.clone
2024-01-20 20:29:07 +01:00
Agus Zubiaga
7b3317dbb6
Update unused warnings for inline imports
...
Now that imports can be limited to smaller scopes than the entire module,
unused import warnings need to work like unused def warnings.
This commit moves unused import warnings discovery and reporting from load
to canonicalization where we can track their usage per scope.
This also fixes a longstanding bug where unused exposed names from an import
were not reported if they were only used in a qualified manner.
2024-01-20 08:43:36 -03:00
Agus Zubiaga
710d62f754
Load and can new top-level imports
...
Previously, all imports were available in the header, so we could start
processing dependencies as soon as we parsed it. However, the new imports
are treated as defs, so we have to parse the whole module to find them.
This commit essentially moves the dependency resolution from the `LoadHeader`
phase to the `Parse` phase, and it updates canonicalization to introduce
module symbols into scope when a `ValueDef::ModuleImport` is encountered.
NOTE:
- The `imports` header still parses, but it's no longer wired up. I will remove
it in an upcoming commit.
- Ingested files and imports that appear in nested expressions are not
yet supported by load
2024-01-20 08:39:31 -03:00
Richard Feldman
e7c93bad75
Restore » in docs and allow it in highlighter
2024-01-18 22:23:06 -05:00
Richard Feldman
09c0453fc9
Fix HTML build
2024-01-18 21:51:50 -05:00
Luke Boswell
85fdef8a9b
fix doc comments in Str
2024-01-19 09:56:53 +11:00
Richard Feldman
894860118b
roc format
on builtins
2024-01-18 06:34:51 -05:00
Richard Feldman
88ea8ffb67
fix typo
2024-01-17 21:51:39 -05:00
Richard Feldman
b48fa0698a
Remove scalars and graphemes from Str
2024-01-17 21:30:34 -05:00
Richard Feldman
65738acb26
Update Str docs
2024-01-17 18:42:32 -05:00
Bryce Miller
a710dd18ac
Merge branch 'main' into list-walk-with-index-until
2023-12-18 17:25:06 +01:00
Sahil Mahapatra
b2ceeb47d9
removed all the mentions of Num.format
2023-12-13 18:51:01 +05:30
Bryce Miller
2db4cae9d1
Merge branch 'main' into list-walk-with-index-until
2023-12-12 07:54:42 -05:00
Bryce Miller
89febf52bc
Merge branch 'main' into list-walk-with-index-until
2023-12-11 23:13:21 -05:00