Skip to content

Releases: elliotchance/pie

v1.11.0

03 May 03:18
Compare
Choose a tag to compare
Adding Abs (#83)

Fixes #67

v1.10.1

02 May 23:14
70bf87c
Compare
Choose a tag to compare
ci: adding test stats (#82)

v1.10.0

01 May 23:19
71a8d56
Compare
Choose a tag to compare
added: Each (#79)

Each is more condensed version of Transform that allows an action to happen on each elements and pass the original slice on.

v1.9.0

30 Apr 14:08
1dc63dc
Compare
Choose a tag to compare
median: added (#65)

Median returns the value separating the higher half from the lower half of a data sample.

Zero is returned if there are no elements in the slice.

Fixes #42

v1.8.0

30 Apr 14:02
baee0d5
Compare
Choose a tag to compare
generate: require ".*" to generate all functions (#66)

As the number of available functions increase, the usefulness or generating all of them lessens. This is a breaking change but a necessary one. You will now need to specify `foo.*` to generate all functions for `foo`.

v1.7.1

30 Apr 13:41
63d6c53
Compare
Choose a tag to compare
formatting: fix (#64)

There were some final changes to do with documentation that were not double baked.

v1.7.0

30 Apr 12:06
Compare
Choose a tag to compare
Implementation of Top and Bottom functions (#60)

Top function
that returns n elements from head of slice
for [1,2,3] and n = 2 it returns [1,2]
for n < 0 && n == 0 it returns empty slice
if n more than lenght of slice returns all elements

Bottom function
that returns n elements from bottom
in order from bottom
it means for this [1,1,2] bottom(2) will return [2,1]

v1.6.1

29 Apr 23:56
2b46d06
Compare
Choose a tag to compare
shuffle: support in go 1.8+ (#63)

rand.Shuffle is only available from go 1.10+.

v1.6.0

29 Apr 23:23
Compare
Choose a tag to compare
Shuffle function (#61)

Returns a new shuffled slice.

v1.5.2

28 Apr 23:33
7393722
Compare
Choose a tag to compare
codecov: added (#62)

Also updated the build to correctly check if the generated files are in sync.