These are chat archives for ramda/ramda
@pentatronix Just a friendly reminder that questions on optics are more than welcome on the calmm gitter channel. :)
Traversals are a generalization of traverse. Of course, this tells very little. Examples, like this, of using traversals are far more helpful in getting an intuition about what traversals are and what one can do with them.
R.containsdoes a deep equals, but otherwise, seems the same. Should they have the same name?
containsis a function, whereas
includesis a method. If you do use
includesas a function (via
apply) then the parameter order is switched from what is in Ramda. So there are a few differences.
R.split(/[A-Z]/g)will actually remove all caps, but will split into an array
Matches x only if x is followed by y.
underscore.string, but I am making something functional that will work with Ramda. Essentially, the functions waterfall through one another in a functional manner. Would this cause an unexpected result in the waterfall?
(?:, that's my mistake
(?=[A-Z])is working because it's saying split on nothing if it's followed by a capital letter
R.split(/./g), you would get a bunch of empty strings,
R.split(/(?=(?=.)/g), and you'll get back an array of each letter