sync-algorithms

command
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

Synchronous Algorithms

This example demonstrates the core synchronous transformation algorithms.

What it shows

  • Map() - Transform each element
  • Filter() - Keep elements matching a condition
  • Take() - Limit the number of elements
  • FlatMap() - Transform each element into multiple results
  • Chaining operations together
  • Working with different data types

Run

cd examples/sync-algorithms
go run main.go

Key concepts

  • Operations execute sequentially in the order they appear
  • Chaining creates readable functional-style code
  • Each algorithm preserves the iterator interface
  • Works with any data type using Go generics

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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