Re: Get broadcast (set in one method) in another method

2018-01-25 Thread Gourav Sengupta
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 wrote: >

Get broadcast (set in one method) in another method

2018-01-25 Thread Margusja
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 =