José Valim
2a374aee71
No longer auto-sort bindings
2021-02-24 15:39:33 +01:00
José Valim
c6d90fbdf1
Use maps as bindings on Erlang/OTP 24 for faster evaluation
2021-02-24 15:16:10 +01:00
José Valim
85599242fd
Update erlang test helper
2021-02-24 09:50:48 +01:00
José Valim
93adad7aa4
Remove duplicated tests
2021-02-24 09:40:56 +01:00
Adi Iyengar
538a756caa
Add documentation for Kernel.apply/x about clarity ( #10748 )
...
To better explain when to use apply, add a sentence similar
to [erlang docs](https://erlang.org/doc/man/erlang.html#apply-3 )
2021-02-23 08:58:29 +01:00
Bessenyei Balázs Donát
a9f6e2e261
Refine docstring for String.duplicate ( #10747 )
...
Duplicate `n` times might sound unusual to some. This commit changes the docstring for `String.duplicate` to use repeat.
2021-02-22 18:52:28 +01:00
sabiwara
1aa4896d81
Optimize Enum.join/3 for lists ( #10746 )
2021-02-22 12:40:03 +01:00
sabiwara
add1b39fb2
Optimize Enum.intersperse/2 ( #10745 )
2021-02-22 08:59:52 +01:00
sabiwara
5a111f4231
Optimize Enum.scan/2 and Enum.scan/3 ( #10744 )
2021-02-21 13:47:38 +01:00
Wojtek Mach
68661dfa91
Support 16bit floats in bitstrings ( #10740 )
...
On OTP 24:
iex> <<x::float-16>> = <<60, 0>>
iex> x
1.0
iex> <<x::float-16>>
<<60, 0>>
Before OTP 24 we'd get errors or wouldn't match:
iex> <<1.0::float-16>>
** (ArgumentError) argument error while evaluating iex at line 1
<<x::float-16>> = <<60, 0>>
** (MatchError) no match of right hand side value: <<60, 0>>
iex> (fn <<x::float-16>> -> x; _ -> :nomatch end).(<<60, 0>>)
:nomatch
2021-02-20 11:24:58 +01:00
sabiwara
5ea8eed53f
Optimize Enum.dedup/1 ( #10741 )
2021-02-20 08:01:13 +01:00
Nathan Long
c47d313d83
Expand example and explanation of with clause ( #10739 )
2021-02-18 19:32:29 +01:00
Eksperimental
85cda56a4a
Update erlang.org links ( #10737 )
...
Consistently use https://erlang.org
See also ExDoc PR: https://github.com/elixir-lang/ex_doc/pull/1335
2021-02-18 13:18:43 +01:00
Eksperimental
e82b917a73
Migrate Erlang module URLs to Erlang module links ( #10736 )
2021-02-18 06:43:13 +01:00
Eksperimental
96d82bd8e4
Revise use of link titles ( #10735 )
...
It removes the use of indiscriminate title casing.
Pages titles in Elixir pages are not title cased.
2021-02-17 21:30:43 +01:00
Eksperimental
daee91e99d
Improve wording and typespecs in ambiguous datetimes ( #10732 )
2021-02-17 21:26:36 +01:00
Jonathan Arnett
88f596c20c
Mark is_struct/2 code as generated ( #10734 )
2021-02-17 21:00:04 +01:00
Eksperimental
e5d8525813
Improve grammar around "then" ( #10727 )
2021-02-17 16:39:16 +01:00
dwiyanr
927d02ba1a
Cleanup waiting map on Task.Supervised.stream/6 ( #10729 )
...
When running Task.Supervised.stream/6 with ordered options turned off,
the "waiting" map to store the response from task is not cleaned up.
This leads to the response piled up in the map causing memory leak.
This changes cleanup the map of the response that has been delivered to the reducer
function.
2021-02-17 16:07:02 +01:00
José Valim
6bc13297a2
Simplify nested call
2021-02-17 15:59:21 +01:00
Eksperimental
09e71b415e
Add clarification in Atoms section in Unicode syntax page ( #10725 )
2021-02-17 13:01:37 +01:00
Eksperimental
956db67536
Fix warning message mentioning quoted atoms may end with ! or ? ( #10724 )
2021-02-17 12:08:53 +01:00
Eksperimental
5343ed80ea
Improve syntax docs ( #10723 )
2021-02-17 07:46:26 +01:00
Eksperimental
6acd6694fb
Use underscores in plural in warning messages ( #10721 )
2021-02-16 17:57:00 +01:00
Barna Kovacs
014093c51a
Fix typo in GenServer docs ( #10717 )
2021-02-15 18:20:51 +01:00
victor felder
0264108b61
Fix Macro.underscore for digit preceded by capitals, closes #10713 ( #10715 )
2021-02-14 22:30:19 +01:00
Barna Kovacs
5a2ae06ba7
Fix logic error in docs of GenServer's c:terminate/2 ( #10714 )
2021-02-14 19:14:42 +01:00
José Valim
6570e35f14
Improve Task docs to mention shutdown and different patterns
2021-02-13 09:56:35 +01:00
José Valim
1155c06646
Revert "Do not support negative dates on the basic format"
...
This reverts commit b8537159ae .
2021-02-12 14:21:15 +01:00
José Valim
ae3ef6732c
Generalize operator completion on IEx' parser
2021-02-12 14:19:31 +01:00
Wojtek Mach
1ccb9c0060
Update Erlang warnings translation ( #10694 )
...
Since https://github.com/erlang/otp/commit/8ecc648df22dbfe9dd68a3e2b968ba2b6a2ca7fe
instead of `{eval_failure, Reason}` we'd get `{eval_failure, Call, Reason}`
2021-02-12 12:23:58 +01:00
Łukasz Samson
30e986998d
Fix logic in get_in docs ( #10704 )
2021-02-12 10:48:16 +01:00
José Valim
cd3c52ca21
Talk about the most common case first
2021-02-11 18:58:29 +01:00
sabiwara
a5de297a3f
Speedup Enum.min/1 and Enum.max/1 ( #10701 )
2021-02-11 14:27:33 +01:00
José Valim
b07e17679c
Add export dependencies on Macro.struct!
2021-02-11 10:58:18 +01:00
José Valim
d12cb58229
Add a section for working with structs on get_in
2021-02-11 10:58:18 +01:00
sabiwara
f4113c02f2
Make Enum.any?/1 and Enum.all?/1 faster ( #10700 )
2021-02-11 10:53:09 +01:00
Jan Hruban
40b91af700
Fix typo in documentation ( #10697 )
2021-02-09 13:47:50 +01:00
Jan Hruban
619e91bac9
Document that File.cd!/2 affects the BEAM globally ( #10695 ) ( #10696 )
2021-02-09 12:48:18 +01:00
Christopher Keele
6a15048e4e
Support basic datetime format in Calendar.ISO parsing functions ( #10693 )
2021-02-08 22:58:32 +01:00
Christopher Keele
cad4365de3
Rework Calendar.ISO parsing function tests and examples ( #10692 )
...
* Add ISO format examples to the top-level moduledocs.
* Move unit tests out of parse_time/1 documentation and into suite.
* Move unit tests out of parse_naive_datetime/1 documentation and into suite.
* Move unit tests out of parse_utc_datetime/1 documentation and into suite.
* Remove duplicated parse_date/1 doctests, fix missing asserts, other
cleanup.
2021-02-06 09:12:31 +01:00
José Valim
d533e7a1fd
Update references to the latest ISO
2021-02-06 08:32:47 +01:00
Christopher Keele
59dbce3b4b
Improve Calendar.ISO documentation ( #10689 )
2021-02-06 08:31:13 +01:00
José Valim
b8537159ae
Do not support negative dates on the basic format
2021-02-05 07:55:22 +01:00
Wojtek Mach
16bfca0293
Add basic docs for Kernel.ParallelCompiler.compile_to_path/3 ( #10685 )
2021-02-03 07:03:17 +01:00
Eksperimental
2202cc0c6b
Fix context in defdelagate/2 AST ( #10682 )
...
Fixes #10593
2021-02-02 11:11:58 +01:00
José Valim
8dff857904
Fix URI deprecation warnings
2021-01-30 21:40:27 +01:00
Floris Huetink
40ece3b998
Add functions for RFC 3986 compliant space encoding and decoding ( #10680 )
2021-01-30 21:36:46 +01:00
Milton Mazzarri
c3bbf442fb
chore: fix callbacks amount in GenServer docs ( #10681 )
2021-01-30 20:25:42 +01:00
Eksperimental
02c72c0f84
Standardize use of key-value pair ( #10676 )
2021-01-26 15:25:47 +01:00