Skip to content
This repository has been archived by the owner on Mar 3, 2018. It is now read-only.

Prefer R.ifElse over R.cond #7

Open
lo1tuma opened this issue Dec 16, 2015 · 0 comments
Open

Prefer R.ifElse over R.cond #7

lo1tuma opened this issue Dec 16, 2015 · 0 comments

Comments

@lo1tuma
Copy link
Owner

lo1tuma commented Dec 16, 2015

R.cond([
    [ R.is(Array), R.head ],
    [ R.T, R.identity ]
]); // could be written as R.ifElse(R.is(Array), R.head, R.identity) 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant