Joseph Wilk
94d714bb2f
new was wasteful, just create the new ordered bucket.
2013-06-29 23:21:00 +02:00
Joseph Wilk
1be0a5329b
formatting tweaks
2013-06-29 23:21:00 +02:00
Joseph Wilk
73fdf7442b
Corrected definition of difference.
...
Set 1 minus Set 2 members.
2013-06-29 23:21:00 +02:00
Joseph Wilk
5598eb68d0
difference and intersection support for nodes.
...
Though not very efficient for nodes.
2013-06-29 23:21:00 +02:00
Joseph Wilk
99a03ffcf9
Refactor: removing unneeded comparisons
2013-06-29 23:21:00 +02:00
josephwilk
07e8a7318c
documentation for functions.
2013-06-29 23:21:00 +02:00
josephwilk
b7dac7e24a
Correcting a bad merge
2013-06-29 23:21:00 +02:00
josephwilk
9b01bae463
nodes also don't contain duplicates
2013-06-29 23:20:59 +02:00
josephwilk
ca4997e7f4
delete works with nodes
2013-06-29 23:20:59 +02:00
josephwilk
4c1ee4e261
union works with nodes
2013-06-29 23:20:59 +02:00
josephwilk
cacb7d5997
member? for sets works with nodes
2013-06-29 23:20:59 +02:00
josephwilk
4b502985d4
Support expanding depth of nodes.
...
There is a lot of CRAZY resizing logic that is copied from HashDict. Once everything is working consider extracting.
2013-06-29 23:20:59 +02:00
josephwilk
48ecb7d6f0
put supports growing into a trie.
...
* to_list works with trie
2013-06-29 23:20:59 +02:00
josephwilk
023866b2b0
Adding set member? for buckets
2013-06-29 23:20:59 +02:00
josephwilk
72c3432042
Adding set difference for buckets
2013-06-29 23:20:59 +02:00
josephwilk
d7facd11df
Adding set intersection for buckets
2013-06-29 23:20:59 +02:00
josephwilk
76b8b9f3a9
Adding set union
2013-06-29 23:20:59 +02:00
Joseph Wilk
20f26909c8
I think member is a better name than value
2013-06-29 23:20:58 +02:00
Joseph Wilk
276eee072d
delete from a set
2013-06-29 23:20:58 +02:00
josephwilk
37621d4a07
Adding Set with simple ops just for bucket (small sets)
2013-06-29 23:20:58 +02:00
José Valim
8e5f14dc74
Require Erlang 16B+
2013-06-29 16:59:01 +02:00
José Valim
c832d3a78e
Import records that depends on others, closes #1334
2013-06-29 13:11:50 +02:00
Yuki Ito
dbe2851cdb
Fix typo in Module.get_attribute doc
2013-06-29 11:41:54 +09:00
Tom Janssens
ea32d951ab
Skip symlink tests on windows
2013-06-28 15:45:42 +02:00
Tom Janssens
598f0e0141
We no longer execute the doc_tests for elixir file helpers
...
Due to windows incompatibility, we removed some of the doctests for the
file helpers.
2013-06-28 15:43:51 +02:00
John Warwick
e3d086abb5
Added more doctests in Keyword module
2013-06-27 22:53:53 -04:00
John Warwick
74ea72246e
Fixing typos and formatting in Keyword docs
2013-06-27 22:42:53 -04:00
José Valim
447a57750f
Simplify binding handling
2013-06-27 17:47:45 +02:00
José Valim
e1c3df3bef
Remove verbose doctest
2013-06-27 14:33:19 +02:00
John Warwick
88e4b5833f
Fixed return type in doc of Enum.each
2013-06-26 23:55:04 -04:00
John Warwick
d5323e3311
Added examples for Enum.count/2 and Enum.zip/2
2013-06-26 23:45:36 -04:00
John Warwick
1e73ea0527
Fixed doc example for Enum.each
2013-06-26 23:30:02 -04:00
John Warwick
dc3ca821fb
Fixed typo in Enum.min docs
2013-06-26 23:27:40 -04:00
John Warwick
c9fe36c28b
Fixed bad Example formatting in Enum
2013-06-26 23:23:58 -04:00
José Valim
7ba5733496
No need to wrap lists in blocks
2013-06-26 21:53:33 +02:00
José Valim
e035dda2db
Inline list funcs in HashDict too
2013-06-26 21:53:33 +02:00
Eric Meadows-Jonsson
8e8ebe73b9
Refer to the moduledoc from Record.defrecord
2013-06-25 15:10:27 +02:00
José Valim
25862cb7a3
Ensure variables from when in match? do not leak too
2013-06-25 08:58:19 +02:00
vanstee
a6f256fbe8
Remove variables defined in match? from scope
...
At @josevalim's suggestion, we loop over the ast given to the macro and
disable scope of any new variables defined, which effectively stops
variables from leaking into the outside scope.
Fixes #1304
2013-06-24 22:38:40 -04:00
José Valim
3ebca00872
quote calls them context, so let's keep it consistent
2013-06-24 22:38:41 +02:00
José Valim
7e11cea780
Ensure binding(..., false) also works
2013-06-24 16:24:08 +02:00
Tom Janssens
a8b7663f37
Skip windows test for CHMOD 777, as this does not work on windows
2013-06-24 13:17:28 +02:00
Tom Janssens
3b6afdd7d4
Cleaned up test_helper some more
2013-06-24 12:47:30 +02:00
José Valim
943fabb548
Merge pull request #1322 from ToJans/master
...
Tests on windows now intercept stderr from elixir(c) invocations
2013-06-24 03:35:27 -07:00
Tom Janssens
53f5fe71bb
Cleaned up the elixir test_helper.exs a bit
2013-06-24 12:33:12 +02:00
Tom Janssens
c406ce4aac
Grouped some windows functionality in test_helper for elixir
2013-06-24 12:16:38 +02:00
Tom Janssens
4b4a7e8d4a
Tests on windows now intercept stderr from elixir(c) invocations
...
Previously tests on windows did not intercept stderr when they were
invoked through :os.cmd, so we now add a piper redirect from stderr
to stdout when invoking elixir(c) on windows.
2013-06-24 12:04:46 +02:00
José Valim
7d2214678e
Remove useless assignment on defrecord
2013-06-24 10:30:08 +02:00
José Valim
81972106d9
Fix unused variable warning
2013-06-24 10:12:58 +02:00
José Valim
8abed86b1a
Improve error message and optimize record macros
2013-06-24 08:14:38 +02:00