|
|
|
|
|
by yakshaving_jgt
1584 days ago
|
|
Why are you using a “trick” to skip an element in some structure when mapping a function over it? For posterity (and forgive me if this JavaScript syntax is inaccurate; I don't write it so much these days)… xs.map(a => shouldBeSkipped ? a : f(a))
|
|