I deleted the toot because reject used to return an array of entry arrays but now it actually returns the hash
-
-
Replying to @searls @MarmiteJunction
and I got that wrong at first because reject no longer decomposes {|(k,v)|} correctly, it passes both {|k,v|}. Good times
2 replies 0 retweets 0 likes -
Replying to @searls @MarmiteJunction
`FromIterator` is a good interface to have exist which is separate from `Iterable`/`Iterator`. I wish Ruby had it.
1 reply 0 retweets 1 like -
sounds a bit like the Ennumerable module? Or am I missing something?
3 replies 0 retweets 0 likes -
Replying to @MarmiteJunction @searls
Enumerable just assumes that you want an Array back.
1 reply 0 retweets 0 likes -
-
Replying to @MarmiteJunction
If ruby had type annotations: `def from_enumerable(enumerable: Enumerable): Self`
1 reply 0 retweets 0 likes -
Replying to @sgrif
so, it constructs the argument by iterating over something?
1 reply 0 retweets 0 likes -
-
If it ever were to happen in Ruby in a backwards compat fashion, it'd look something like https://gist.github.com/sgrif/b8bdbd3fae24ab96b5fbb5d3aed9ac6f …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.