These are chat archives for ramda/ramda

30th
Apr 2016
Hardy Jones
@joneshf
Apr 30 2016 01:14
@JAForbes if you didn't get an answer...
@ram-bot
const ones = [[1,1], [1,1], [1,1]];
const zeros = [[0,0],[0,0],[0,0]];
R.unnest(R.intersperse(zeros, R.map(R.of, ones)));
ram-bot
@ram-bot
Apr 30 2016 01:14
[ [ 1, 1 ],
  [ 0, 0 ],
  [ 0, 0 ],
  [ 0, 0 ],
  [ 1, 1 ],
  [ 0, 0 ],
  [ 0, 0 ],
  [ 0, 0 ],
  [ 1, 1 ] ]
Hardy Jones
@joneshf
Apr 30 2016 01:14
naively
James Forbes
@JAForbes
Apr 30 2016 03:06
thank you! I've never seen/heardof unnest - exciting
John-David Dalton
@jdalton
Apr 30 2016 06:27
like flatten
James Forbes
@JAForbes
Apr 30 2016 06:39
Right, like an incremental flatten
Sebastien Daniel
@SebastienDaniel
Apr 30 2016 13:56
working with MongoDB makes Ramda even more fun