seq

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In

func In[E comparable](seq iter.Seq[E], target E) bool

In checks if the target element is in the sequence. A nil sequence is considered empty.

Parameters:

  • seq: The sequence to check.
  • target: The element to check for.

Returns:

  • bool: True if the element is in the sequence, false otherwise.

func InFunc

func InFunc[E any](seq iter.Seq[E], fn func(E) bool) bool

InFunc checks if the target element is in the sequence. A nil sequence is considered empty and, if the function is nil, returns false.

Parameters:

  • seq: The sequence to check.
  • fn: The function to check for.

Returns:

  • bool: True if the element is in the sequence, false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL