Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helper/abs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package helper

import "math"

// Abs calculates the absolute value of each value in a channel of float64.
// Abs calculates the absolute value of each value in a channel of type T.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// Add adds each pair of values from the two input channels of float64
// Add adds each pair of values from the two input channels of type T
// and returns a new channel containing the sums.
//
// Example:
Expand Down
4 changes: 2 additions & 2 deletions helper/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package helper

// Apply applies the given transformation function to each element in the
// input channel and returns a new channel containing the transformed
// values. The transformation function takes a float64 value as input
// and returns a float64 value as output.
// values. The transformation function takes a value of type T as input
// and returns a value of type T as output.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/chan_to_slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// ChanToSlice converts a channel of float64 to a slice of float64.
// ChanToSlice converts a channel of type T to a slice of type T.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/divide.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// Divide takes two channels of float64 and divides the values
// Divide takes two channels of type T and divides the values
// from the first channel with the values from the second one.
// It returns a new channel containing the results of
// the division.
Expand Down
2 changes: 1 addition & 1 deletion helper/divide_by.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package helper

// DivideBy divides each element in the input channel
// of float64 values by the given divider and returns a
// of type T values by the given divider and returns a
// new channel containing the divided values.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package helper

// Filter filters the items from the input channel based on the
// provided predicate function. The predicate function takes a
// float64 value as input and returns a boolean value indicating
// value of type T as input and returns a boolean value indicating
// whether the value should be included in the output channel.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/head.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package helper

// Head retrieves the specified number of elements
// from the given channel of float64 values and
// from the given channel of type T values and
// delivers them through a new channel.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/keep_negatives.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// KeepNegatives processes a stream of float64 values, retaining negative
// KeepNegatives processes a stream of type T values, retaining negative
// values unchanged and replacing positive values with zero.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/keep_positives.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// KeepPositives processes a stream of float64 values, retaining positive
// KeepPositives processes a stream of type T values, retaining positive
// values unchanged and replacing negative values with zero.
//
// Example:
Expand Down
4 changes: 2 additions & 2 deletions helper/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package helper

// Map applies the given transformation function to each element in the
// input channel and returns a new channel containing the transformed
// values. The transformation function takes a float64 value as input
// and returns a float64 value as output.
// values. The transformation function takes a value of type F as input
// and returns a value of type T as output.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/multiply.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// Multiply takes two channels of float64 and multiples the values
// Multiply takes two channels of type T and multiples the values
// from the first channel with the values from the second channel.
// It returns a new channel containing the results of
// the multiplication.
Expand Down
2 changes: 1 addition & 1 deletion helper/multiply_by.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package helper

// MultiplyBy multiplies each element in the input channel
// of float64 values by the given multiplier and returns a
// of type T values by the given multiplier and returns a
// new channel containing the multiplied values.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/pow.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package helper

import "math"

// Pow takes a channel of float64 values and returns the element-wise
// Pow takes a channel of type T values and returns the element-wise
// base-value exponential of y.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/round_digits.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// RoundDigits takes a channel of float64 numbers and rounds them to d
// RoundDigits takes a channel of type T numbers and rounds them to d
// decimal places.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// Sign takes a channel of float64 values and returns their signs
// Sign takes a channel of type T values and returns their signs
// as -1 for negative, 0 for zero, and 1 for positive.
//
// Example:
Expand Down
2 changes: 1 addition & 1 deletion helper/skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package helper

// Skip skips the specified number of elements from the
// given channel of float64.
// given channel of type T.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/slice_to_chan.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// SliceToChan converts a slice of float64 to a channel of float64.
// SliceToChan converts a slice of type T to a channel of type T.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/sqrt.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package helper

import "math"

// Sqrt calculates the square root of each value in a channel of float64.
// Sqrt calculates the square root of each value in a channel of type T.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion helper/subtract.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package helper

// Subtract takes two channels of float64 and subtracts the values
// Subtract takes two channels of type T and subtracts the values
// from the second channel from the first one. It returns a new
// channel containing the results of the subtractions.
//
Expand Down