José Valim
|
20418a14f7
|
Refactor Enum.chunks to use Enumerable.reduce/3, avoiding starting lazy collections twice
|
2013-08-20 14:08:27 +02:00 |
|
José Valim
|
3e1099830a
|
Properly handle @file that comes from warnings
|
2013-08-20 11:39:29 +02:00 |
|
Anthony Grimes
|
7f00aded18
|
Add Enum.chunks.
|
2013-08-20 00:48:42 -07:00 |
|
José Valim
|
84a2b31221
|
Add Macro.to_string/2
|
2013-08-19 18:21:42 +02:00 |
|
José Valim
|
f84b4121ce
|
Allow << _ :: utf8 >> <> binary in matches, closes #1619
|
2013-08-18 14:36:54 +02:00 |
|
José Valim
|
ff2af55e1d
|
Improve warning for ungrouped clauses
|
2013-08-18 10:05:36 +02:00 |
|
José Valim
|
a45a2c9d93
|
Allow erlang options when compiling elixir regexes
|
2013-08-17 11:57:17 +02:00 |
|
parroty
|
f2066e0ea9
|
Add underscore for avoiding variable unused warning
|
2013-08-17 12:02:48 +09:00 |
|
José Valim
|
aaebf84440
|
Always stop on --, even for parse
|
2013-08-16 09:28:58 +02:00 |
|
Stratos Voukelatos
|
42339679e0
|
Fixed comment typo in lib/elixir/src/elixir_translator.erl
|
2013-08-16 00:34:23 +03:00 |
|
José Valim
|
a696b9cc11
|
Update Macro.to_string comments
|
2013-08-15 14:27:53 +02:00 |
|
José Valim
|
ffc629a408
|
Merge pull request #1606 from pminten/macro-to-string-binop-parens
Macro.to_string: don't add unneeded binop parens
|
2013-08-15 05:24:53 -07:00 |
|
Peter Minten
|
081dbceeee
|
Macro.to_string: don't add unneeded binop parens
This changes the `Macro.to_string` output of (quoted) `1+2+3+4` from
`((1 + 2) + 3) + 4` to `1 + 2 + 3 + 4`.
|
2013-08-15 14:05:37 +02:00 |
|
José Valim
|
9ec2176675
|
Ensure we are not allocating a new binary on each step
|
2013-08-15 13:51:55 +02:00 |
|
José Valim
|
eb9753ddd1
|
Limit inspect by default, closes #1595
|
2013-08-15 10:35:04 +02:00 |
|
José Valim
|
59013d4066
|
Merge pull request #1602 from jwarwick/iolist_typo
Cleaned up Kernel.iolist_to_binary/1 docs
|
2013-08-14 23:53:52 -07:00 |
|
John Warwick
|
4900cd84fc
|
Cleaned up Kernel.iolist_to_binary/1 docs
|
2013-08-14 21:09:46 -04:00 |
|
Keith Alexander
|
5c3ff52741
|
Update file.ex
fixed typo
|
2013-08-14 23:47:00 +01:00 |
|
Eric Meadows-Jonsson
|
35af4348ae
|
Macro.to_string handles access and kw-lists nicer
|
2013-08-14 22:10:48 +02:00 |
|
Devin Torres
|
d6c7e813f3
|
do_justify should be private
|
2013-08-14 13:40:33 -05:00 |
|
José Valim
|
5ce8f34fe6
|
Add missing helpers file
|
2013-08-14 13:32:50 +02:00 |
|
José Valim
|
ff9aba4350
|
Handle unsafe vars inside or/and
|
2013-08-14 13:24:12 +02:00 |
|
José Valim
|
6ac280e17c
|
Clean up and expose are more complete API in Exception
|
2013-08-14 12:55:13 +02:00 |
|
José Valim
|
db47bd56b4
|
Add Path.relative_to_cwd and rely on it when generating stacktraces
|
2013-08-14 12:36:54 +02:00 |
|
José Valim
|
e2ef1ae8de
|
Improve docs for iolist_to_binary
|
2013-08-14 11:39:04 +02:00 |
|
José Valim
|
cea31f69dc
|
Review and deprecate list <-> binary conversion
|
2013-08-14 11:16:37 +02:00 |
|
José Valim
|
3259599111
|
Update CHANGELOG
|
2013-08-14 08:34:32 +02:00 |
|
José Valim
|
8affa706b7
|
Merge pull request #1593 from vanstee/string-justification-functions
Implement string justification functions
|
2013-08-13 23:27:04 -07:00 |
|
Chris McCord
|
8e43b4268d
|
Add example to Enum.take docs using negative count.
|
2013-08-13 22:55:28 -04:00 |
|
vanstee
|
0850430768
|
Only accept a single character as padding
|
2013-08-13 11:07:02 -04:00 |
|
vanstee
|
b14617ca90
|
Do not truncate strings when justifying
|
2013-08-13 10:53:27 -04:00 |
|
vanstee
|
bc35aebd0c
|
Include documentation for justification functions
|
2013-08-13 10:28:40 -04:00 |
|
vanstee
|
0276419f4e
|
Implement rjust and ljust string functions
To provide string justification, the following functions were
implemented:
* `String.rjust/2`
* `String.rjust/3`
* `String.ljust/2`
* `String.ljust/3`
|
2013-08-13 10:28:40 -04:00 |
|
vanstee
|
b710ebd5e6
|
Return an empty string from slice with valid index
To keep in line with ruby semantics of
[`String#slice`](http://ruby-doc.org/core-2.0/String.html#method-i-slice)
slice should return an empty string instead of nil when the starting
index is valid even if the length is 0.
Fixes #1591
|
2013-08-13 09:45:08 -04:00 |
|
José Valim
|
ec479a6805
|
Do not compile behaviour docs if --docs is not set
|
2013-08-13 10:47:25 +02:00 |
|
José Valim
|
52188fab89
|
Move from unicode to list to String.to_char_list
|
2013-08-13 08:39:16 +02:00 |
|
José Valim
|
19ac199b06
|
Move from unicode to binary to String.from_char_list
|
2013-08-13 08:39:16 +02:00 |
|
José Valim
|
5262cb9c57
|
Macro.unescape_binary -> Macro.unescape_string
|
2013-08-13 08:39:16 +02:00 |
|
José Valim
|
82d8d2ad63
|
Deprecate Dict.update/3 in favor of Dict.update!/3
A non-raising version that yields nil will be added in
upcoming releases.
|
2013-08-13 08:39:16 +02:00 |
|
John Warwick
|
40478d1014
|
Fixed Kernel.defrecord arity in docs
|
2013-08-12 10:12:08 -04:00 |
|
José Valim
|
7100965169
|
Merge pull request #1587 from meh/process-fix
Process fix
|
2013-08-12 00:37:03 -07:00 |
|
José Valim
|
d8ded6ecd4
|
Merge pull request #1588 from vanstee/string-strip-support-unicode
Support removing unicode characters with strip
|
2013-08-12 00:36:50 -07:00 |
|
José Valim
|
7e0428f52f
|
Merge pull request #1589 from rramsden/doc-fix/typo
Fix typo in File.rmdir/1
|
2013-08-11 23:07:59 -07:00 |
|
Richard Ramsden
|
77ddc4540d
|
Fix typo in File.rmdir/1
|
2013-08-12 09:07:04 +09:00 |
|
vanstee
|
742219339c
|
Support removing unicode characters with strip
Thanks for the suggested fix @josevalim
|
2013-08-11 16:49:15 -04:00 |
|
meh
|
e02bf30c9d
|
Make Process.info return nil instead of :undefined
|
2013-08-11 22:11:07 +02:00 |
|
meh
|
cde006affa
|
Fix Process.whereis documentation
|
2013-08-11 22:11:07 +02:00 |
|
José Valim
|
9daa0bc3a2
|
Support IO.stream/2 and IO.binstream/2 and deprecate current IO.sream/1 and IO.binstream/1
Closes #1582
|
2013-08-11 15:48:31 +02:00 |
|
José Valim
|
b0317a8e18
|
Allow capture on anonymous function calls
|
2013-08-11 15:16:00 +02:00 |
|
José Valim
|
4eb98a83e5
|
Clean up option parser
|
2013-08-11 12:38:47 +02:00 |
|