sammomichael (Samuel Michael)
- Login: sammomichael
- Registered on: 09/06/2019
- Last sign in: 10/08/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
10/07/2019
-
06:35 PM Ruby Feature #16147: List Comprehensions in Ruby
- sammomichael (Samuel Michael) wrote:
> I also have added rudimentary support for nested comprehensions.
> ...
> # Build Matrix from nested loop
> ...
> # Flatten Matrix with nested loop
> ...
`$l[for x in 1..10 do for... -
01:01 PM Ruby Feature #16147: List Comprehensions in Ruby
- I also have added rudimentary support for nested comprehensions.
# Build Matrix from nested loop
`p $l[[for x in 1..10 do end], for x in 2..20 do x end] ` #=> does (1..10).map{(2..20).map{|x|x}
# Flatten Matrix with nested loop
...
09/29/2019
-
02:26 AM Ruby Feature #16147: List Comprehensions in Ruby
- ## ruby_list_comprehension gem documentation
https://github.com/SammoMichael/Ruby_List_Comprehension
## ruby_list_comprehension gem page
https://rubygems.org/gems/ruby_list_comprehension
Here is a gem to give a better idea what I mea...
09/23/2019
-
10:06 PM Ruby Feature #16147: List Comprehensions in Ruby
- Eregon (Benoit Daloze) wrote:
> Just my opinion: I don't think we should have list comprehensions in Ruby.
Thanks I appreciate the feedback!
> ...
You have some very good points! Nested comprehensions can get pretty gnarly. Still... -
09:16 PM Ruby Feature #16147: List Comprehensions in Ruby
- nobu (Nobuyoshi Nakada) wrote:
> sammomichael (Samuel Michael) wrote:
> ...
Hi, I was suggesting a splat operator as one way to create a special syntax, under the hood instead of calling each method it would treat this as a filter map...
09/21/2019
-
09:46 PM Ruby Feature #16147: List Comprehensions in Ruby
- In reiteration of my main points, Ruby is a dynamic multi-paradigm language which should when possible embrace a variety of modes to achieve the same result.
SO what would be the benefits of list comprehension in Ruby and what wou...
09/06/2019
-
05:28 PM Ruby Feature #16147: List Comprehensions in Ruby
- sammomichael (Samuel Michael) wrote:
> shevegen (Robert A. Heiler) wrote:
> ...
Yes it is real, and yes, I should have changed it to be a feature and not a bug
> > Next, I will briefly comment on this statement:
> ...
I use Ruby's ... -
04:44 PM Ruby Feature #16147: List Comprehensions in Ruby
- There is nothing wrong with the current ruby syntax of using enumerables such as map/select/filter_map to generate the same type of list. But as you said ruby is all about many ways of doing things. And as many languages offer some versi...
-
10:38 AM Ruby Feature #16147 (Open): List Comprehensions in Ruby
- ## List comprehensions are present in many languages and programmers are quite fond of their simplicity and power. Add to that the fact that Ruby has a for...in loop that is rarely used but could possibly be repurposed.
### Currently...