Hi,

Just out of curiosity, in what sort of programming or designing paradigm
does this way of solving things fit in? In case you are trying functional
programming do you think that currying will help?

Regards,
Gourav Sengupta


On Thu, Jan 25, 2018 at 8:04 PM, Margusja <mar...@roo.ee> wrote:

> Hi
>
> Maybe I am overthinking. I’d like to set broadcast in object A method y
>  and get it in object A method x.
>
> In example:
>
> object A {
>
> def main (args: Array[String]) {
> y()
> x()
> }
>
> def x() : Unit = {
> val a = bcA.value
> ...
> }
>
> def y(): String = {
> val bcA = sc.broadcast(a)
> …
> return “String value"
> }
>
> }
>
>
>
>
> ---
> Br
> Margus
>

Reply via email to