import { concat } from "./concat.js" ; import { repeat } from "./repeat.js" ; example Essentially, syntax sugar for:
 *
 * ```ts
 * // default
 * concat(repeat(x, numLeft), src, repeat(x, numRight))
 *
 * // left only
 * concat(repeat(x, numLeft), src)
 *
 * // right only
 * concat(src, repeat(x, numRight))
 * ```
 *
 * -  extendSides * -  wrapSides param src param x param numLeft param numRight export const padSides = < T > ( src , x , numLeft = 1 , numRight = numLeft ) : IterableIterator < T > => numLeft > 0 ? numRight > 0 ? concat ( repeat ( x , numLeft ) , src , repeat ( x , numRight ) ) : concat ( repeat ( x , numLeft ) , src ) : numRight > 0 ? concat ( src , repeat ( x , numRight ) ) : concat ( src ) ;