7 lines
178 B
JavaScript
7 lines
178 B
JavaScript
|
import { allNumbers } from './number.js'
|
||
|
|
||
|
export default function create(pmath) {
|
||
|
return pmath('add', [allNumbers,
|
||
|
(...addends) => addends.reduce((x,y) => x+y, 0)])
|
||
|
}
|