package utils
import "github.com/IBM/fp-go/internal/utils"
Index ¶
- Variables
- func Dec(i int) int
- func Double(value int) int
- func Error() (int, error)
- func GetFullName(s WithGivenName) string
- func Inc(i int) int
- func StringLen(value string) int
- func Sum(left, right int) int
- func Triple(value int) int
- type Initial
- type WithGivenName
- type WithLastName
Variables ¶
var ( Empty = Initial{} SetLastName = F.Curry2(func(name string, s1 Initial) WithLastName { return WithLastName{ Initial: s1, LastName: name, } }) SetGivenName = F.Curry2(func(name string, s1 WithLastName) WithGivenName { return WithGivenName{ WithLastName: s1, GivenName: name, } }) )
Functions ¶
func Dec ¶
func Double ¶
func Error ¶
func GetFullName ¶
func GetFullName(s WithGivenName) string
func Inc ¶
func StringLen ¶
func Sum ¶
func Triple ¶
Types ¶
type Initial ¶
type Initial struct { }
type WithGivenName ¶
type WithGivenName struct { WithLastName GivenName string }
type WithLastName ¶
Source Files ¶
- Version
- v1.0.151 (latest)
- Published
- Nov 23, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 months ago –
Tools for package owners.