Commit Graph
2126 Commits
Author SHA1 Message Date
José Valim 10a795ff44 Only support iolists on IO 2013-09-02 16:01:10 -03:00
José Valim ba209268ad Merge pull request #1675 from ericmj/enum-at-fetch-neg
Support negative indicies in Enum.at/fetch/fetch!
2013-08-31 05:34:32 -07:00
Eric Meadows-Jonsson 80ae944d83 Support negative indicies in Enum.at/fetch/fetch! 2013-08-31 14:23:34 +02:00
José Valim 4d3a83262c Merge pull request #1671 from vanstee/string-split-trim-default
No longer trim by default when splitting
2013-08-31 04:27:46 -07:00
José Valim 6d02cd9076 Merge pull request #1672 from meh/regex-compile
Return error on unsupported options in Regex.compile
2013-08-31 04:21:46 -07:00
José Valim 42692c27ab Merge pull request #1669 from brunoro/ipv6-uri
URI.parse supports IPv6 addresses
2013-08-31 03:16:08 -07:00
Gustavo Brunoro 2b34ae14da parsing embedded IPv4 addresses 2013-08-30 19:04:30 -03:00
meh 6e60fa160e Return error on unsupported options in Regex.compile 2013-08-30 13:35:39 +02:00
vanstee dd4a0e96dd No longer trim by default when splitting
Further discussion here:

  https://groups.google.com/forum/#!topic/elixir-lang-core/66gb3J0bnUA
2013-08-30 00:38:41 -04:00
Gustavo Brunoro f4175a1dfa more tests for IPv6 2013-08-29 16:15:12 -03:00
José Valim bcceccd85e Consider stream_lazy to always return the result, move nesting check to after reduce 2013-08-29 07:46:24 -03:00
José Valim b1cf5d9252 Merge pull request #1667 from betawaffle/lazy-throw-fix
Fix Stream.take/2 and Stream.take_while/2 for Stream.Lazy
2013-08-29 03:16:27 -07:00
Gustavo Brunoro ffbcf67431 handling IPv6 addresses on URIs
* very naïve and permissive regex to check for IPv6 addreses.
2013-08-29 00:02:23 -03:00
Gustavo Brunoro d88cd5c92c adding tests for ipv6 addresses on URIs 2013-08-28 23:51:13 -03:00
Elia Schito fd5cbd2be6 Markdown rendering fix 2013-08-28 23:55:51 +02:00
Andrew Hodges e525fb3176 Fix Stream.take/2 and Stream.take_while/2 for Stream.Lazy 2013-08-28 16:27:45 -04:00
José Valim 49aed8cb9a Make a distinction about eager and full evaluation of the collection 2013-08-28 09:25:24 -03:00
José Valim 366d9843aa out of it -> as result 2013-08-28 09:16:19 -03:00
José Valim 0f2838c98c Improve Enum docs 2013-08-28 09:14:07 -03:00
José Valim 8ae1a3b60a Merge pull request #1662 from pminten/note-about-enum-list-return
Add note to Enum to clarify what's returned
2013-08-28 04:58:58 -07:00
Peter Minten 4a405cc8f0 Add note to Enum to clarify what's returned
In particular clarify that infinite streams don't work with many of the
functions.
2013-08-28 13:54:54 +02:00
Andrew Hodges f7391b48fa Add tests for Stream.concat/1,2 and Enum.concat/1,2 2013-08-27 12:53:31 -04:00
Andrew Hodges d78014e7e2 Add support for enumerables of enumerables 2013-08-27 10:22:24 -04:00
Andrew Hodges b2c2a30c83 Move the List concat tests to Enum 2013-08-27 09:37:56 -04:00
Andrew Hodges 9ef2996b78 Replace occurrences of List.concat/1,2 with Enum.concat/1,2 2013-08-27 09:37:26 -04:00
Andrew Hodges 0d13468b1f Deprecate List.concat/1,2 2013-08-27 09:36:17 -04:00
Andrew Hodges 6ef031b87d Add Enum.concat/1,2 and Stream.concat/1,2 2013-08-27 09:34:24 -04:00
José Valim d4efc7bc5d Make it clear Dict.merge expects an enum that yields two-item tuples 2013-08-26 20:13:19 -03:00
José Valim 3c7fb0da6d Optimize split implementation 2013-08-26 15:53:49 -03:00
José Valim 89bebeaeea Merge pull request #1651 from vanstee/string-split-trim
Add support for `trim` option to `String.split` and `Regex.split`
2013-08-26 11:23:41 -07:00
vanstee e304ea9543 Accept the trim option for Regex.split/3
By default `trim` will be set to true. However, since the `global` option
was implemented with the `parts` option (`{ :parts, :infinity }`), we
have to apply a filter to the final result to support `trim`.
2013-08-26 11:41:22 -04:00
vanstee 64cdc76832 Accept the trim option when splitting strings
By default `trim` will be set to true. Because `:binary.strip` only
removes empty strings from the end of the result, we have to apply a
filter to remove empty strings from the beginning before returning.
2013-08-26 11:40:32 -04:00
Eric Meadows-Jonsson dbbfa3536f Enum.slice returns nil when start is out of bounds 2013-08-26 17:15:09 +02:00
José Valim 25ffb4b4b1 Merge pull request #1652 from vanstee/stream-flat-map
Implement `Stream.flat_map/2`
2013-08-26 05:42:10 -07:00
José Valim e80dad1925 Merge pull request #1654 from ericmj/fix-enum-find
Use ifnone in Enum.find for all collections
2013-08-26 05:26:25 -07:00
Eric Meadows-Jonsson e2599beff2 Use ifnone in Enum.find for all collections 2013-08-26 10:42:42 +02:00
vanstee 8478db168a Implement Stream.flat_map/2
Fixes #1642
2013-08-25 22:44:35 -04:00
vanstee 34dade0916 Revert "Merge pull request #1645 from vanstee/string-split-repeats"
This reverts commit fb30101632, reversing
changes made to c348eb7cc5.
2013-08-25 21:27:06 -04:00
José Valim eb96d73198 Add a count guard check for slice 2013-08-25 22:16:58 -03:00
José Valim 4723bca17e Merge pull request #1650 from ericmj/enum-slice
Add Enum.slice/3
2013-08-25 18:08:48 -07:00
Eric Meadows-Jonsson 263f4bf543 Add Enum.slice/3 2013-08-25 23:14:31 +02:00
José Valim fad339957d Remove empty Tuple module 2013-08-25 10:30:15 -03:00
José Valim 488344839a Allow any function identifier as a variable, closes #1649 2013-08-25 10:28:55 -03:00
José Valim f02f90fce0 Merge pull request #1648 from pminten/quote-improper-lists
Allow Macro.escape([1|2])
2013-08-25 03:45:37 -07:00
Peter Minten c73919993d Allow Macro.escape([1|2])
This fixes #1646
2013-08-25 09:35:08 +02:00
Alexei Sholik 3768087b47 Fix failing doctest 2013-08-25 00:29:54 +03:00
José Valim 4a0db2e974 Handle more types on bitsyntax. 2013-08-24 16:07:55 -03:00
José Valim 55aad68512 Splice nested binaries with default types and size 2013-08-24 15:55:24 -03:00
José Valim 3b4954b652 Merge pull request #1643 from pminten/elixirc-silent
Add --verbose to elixirc
2013-08-24 11:15:21 -07:00
José Valim fb30101632 Merge pull request #1645 from vanstee/string-split-repeats
Keep empty strings when splitting
2013-08-24 05:21:14 -07:00