Discover Packages
github.com/baking-code/godash
fill
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Dec 4, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Fill[T interface{}](input []T, filler T, opts ...int ) []T
Fills elements of input with value from opts[0] up to, but not including, opts[1].
(Defaults: opts[0] = 0, opts[1] = len(input)])
Note: This method mutates input.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.