Skip to content

Commit

Permalink
removed outdated examples from README; removed outdated example folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Kossovich committed Sep 23, 2024
1 parent aa34c73 commit 29c497e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 88 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ is better when multithreading).
## Table of Contents
- [Getting Started](#getting-started)
- [Basic information](#basic-information)
- [Supported functions list](#supported-functions-list)
- **[Supported functions list](#supported-functions-list)**
- [Constructors](#constructors)
- [Set Pipe length](#set-pipe-length)
- [Split evaluation into *n* goroutines](#split-evaluation-into-n-goroutines)
Expand All @@ -28,7 +28,7 @@ is better when multithreading).
- [Using prefix `Pipe` to transform `Pipe` type](#using-prefix-pipe-to-transform-pipe-type)
- [Using `ff` package to write shortened pipes](#using-ff-package-to-write-shortened-pipes)
- [Look for useful functions in `Pipies` package](#look-for-useful-functions-in-pipies-package)
- [Examples](#examples)
- **[Examples](#examples)**
- [Basic example](#basic-example)
- [Example using `Func` and `Take`](#example-using-func-and-take)
- [Example using `Func` and `Gen`](#example-using-func-and-gen)
Expand Down Expand Up @@ -66,9 +66,7 @@ You can then use the `pipe` package to create a pipeline of operations on a slic
```go
res := pipe.Slice(a).
Map(func(x int) int { return x * x }).
Map(func(x int) int { return x + 1 }).
Filter(func(x *int) bool { return *x > 100 }).
Filter(func(x *int) bool { return *x < 1000 }).
Parallel(12).
Do()
```
Expand All @@ -82,7 +80,7 @@ import "github.com/koss-null/funcfrog/pkg/ff"
res := ff.Map(strArr, strings.ToUpper).Do()
```

To see some code snippets, check out the `examples/main.go` file. You can also run it with `go run examples/main.go`.
To see some code snippets, check out the [Examples](#examples).

## Basic information

Expand Down
3 changes: 0 additions & 3 deletions example/README.md

This file was deleted.

80 changes: 0 additions & 80 deletions example/main._go

This file was deleted.

0 comments on commit 29c497e

Please sign in to comment.