These are chat archives for gkz/LiveScript

5th
Jul 2018
Daniel Rodríguez Rivero
@danielo515
Jul 05 2018 06:53

what part may I misunderstand?

Sorry, not concrete enough I think:

x = -> 
   * a: 1
      b: 2
   * a: 2
      b: 6
I want to return an array of objects
Cerem Cem ASLAN
@ceremcem
Jul 05 2018 08:19
x = -> 
  hello = 
    * a: 1
      b: 2
    * a: 2
      b: 6

x!
Daniel Rodríguez Rivero
@danielo515
Jul 05 2018 08:19
Yes, that is wat I did
But it makes no sense to declare a variable that is not going to be used in any way
Cerem Cem ASLAN
@ceremcem
Jul 05 2018 08:20
or, absolutely:
x = -> 
  return 
    * a: 1
      b: 2
    * a: 2
      b: 6

x!
Daniel Rodríguez Rivero
@danielo515
Jul 05 2018 08:54
I didn't know you can use return, my bad