These are chat archives for ramda/ramda
filterbut it would only return the number of matches. It would have this signature
(a -> Boolean) -> [a] -> Number
countBybut apparently not...
predicate -> list -> [matched, unmatched]
R.filterdoes it produce a one-pass algorithm? Is there a standard way of writing such a composition in Ramda?
(c -> c) -> (a, b -> a) -> (a -> [b] -> a)
(c -> c)bit I don’t understand, though.
pathcan handle null input of the second argument, but
propcannot. Is this known/intentional/bad/something to care about?
Just(Just('hi'))), have I done something wrong? If that's ok, is there a notion of unwrapping
Justs until you get to the value?
mapto create the inner
Just, you could instead use
chainto flatten them.
Just(Just(x)), you can also call
.chain(R.identity)to flatten them
Justs is functional programming?
Maybes and wanted to get the first that is not
Nothingif they are all
.chain(R.identity)at the end as @scott-christopher mentioned above, but if you have other thoughts on it i would be curious to hear