These are chat archives for ramda/ramda

10th
May 2015
John-David Dalton
@jdalton
May 10 2015 00:33
@raine do want! <small>for another lib ya know</small>
Asaf
@asaf-romano
May 10 2015 04:37
Hey everyone, I'm looking for a nicer way to write something like this:
(Note that .contains there is not ramda's contains, but String.contains)
String.prototype.contains, that is.
Raine Virta
@raine
May 10 2015 08:00
@asaf-romano maybe something like this http://bit.ly/1Fdmll0
the way containsAll is defined there you have to call it like containsAll(token)(string)
Raine Virta
@raine
May 10 2015 08:19
var containsAll = R.useWith(R.allPass, R.map(strContains));
works better
Asaf
@asaf-romano
May 10 2015 12:18
@raine many many thanks!
very nice.
btw, does ramda have something like strContains that I've overlooked
Viktor Fröberg
@vikfroberg
May 10 2015 14:14
@asaf-romano I guess R.strIndexOf is somewhat similar.