ramda / ramda

:ram: Practical functional Javascript

Home Page:https://ramdajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to implement insertWhile

cieldon32 opened this issue · comments

I want to implement. insertWhile(gt(10), 999 , [5,2,9,12,6]) => [5,2,9, 999,12,6]

I means I want a function : insertUntil, it will be:
const gteTwo = x => x >= 2;

R.insertUntil(gteTwo, 2, [1,3,3]); //=> [1, 2, 3, 3]

and I have implemented, I am goingto push the pr