scala.collection.immutable.Iterable seems like a good choice over Seq

On Tue, May 12, 2015 at 1:38 PM, Endre Varga <endre.va...@typesafe.com>
wrote:

> Hi Peter,
>
>
> On Tue, May 12, 2015 at 1:30 PM, Peter Schmitz <petrischm...@gmail.com>
> wrote:
>
>> First of all: Impressive work, guys!
>>
>> Though I have some questions:
>>
>> Why does FlowOps.mapConcat expects a Seq and not a Traversable? (Say I
>> want to pass a SortedSet.)
>>
>
> Good question. I think it could be an Iterable (I would avoid Traversable
> though). I added a ticket.
>
>
>> And concerning the Seq: Why restricted to scala.collection.immutable.Seq
>> and not scala.collection.Seq?
>>
>
> We always prefer immutable collections in our APIs In this case this is
> probably overkill, but at least it allows safe closing over of an existing
> collection in mapConcat from an external scope (since it is immutable). I
> don't think we will change it.
>
> -Endre
>
>
>>
>>
>>  --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to