Daniele B
09/03/2020, 10:11 PMval obj1 = MyDataObj(1,3,4)
val obj2 = MyDataObj(3,2,3)
val obj3 = MyDataObj(2,4,1)
val list = listof(obj1,obj2,obj3)
using AndroidStudio/IntelliJIdea, is it possible to run a script, where I experiment a reduce function, without having to run the whole project, but just this script which references an objected defined in my project?
In other words, can I run my “playground” inside my IntellijIDEA, which references classes already defined in a projects?
I would like to run something like this
println(list.sumBy{ it.a })
nanodeath
09/03/2020, 10:17 PMnanodeath
09/03/2020, 10:18 PMfun main()
and run thatnanodeath
09/03/2020, 10:18 PMnanodeath
09/03/2020, 10:18 PMDaniele B
09/03/2020, 10:34 PMDaniele B
09/03/2020, 10:34 PM