package main import ( "fmt" "github.com/wesovilabs/koazee" ) var stream = koazee.StreamOf([]string{"Dog", "Cat", "Monkey", "Rabbit", "Turtle"}) func main() { stream = stream.Map(func(val string) int { return len(val) }).Do() for _, e := range stream.Out().Val().([]int) { fmt.Println(e) } }