Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 712 Bytes

README.md

File metadata and controls

46 lines (37 loc) · 712 Bytes

rbarray 💎

Go

You can do ruby-like array operations in the golang.😎

https://docs.ruby-lang.org/ja/latest/class/Array.html

Install

$ go install github.com/ppmasa8/[email protected]

Index

  • Pop
  • Shift
  • Push
  • Unshift
  • Delete
  • Sum
  • Max
  • Min
  • Size
  • Uniq
  • Include
  • First
  • Last

coming soon....

Usage

package main

import (
        "fmt"
        "github.com/ppmasa8/rbarray"
)

func main() {
        array := rbarray.Array{IntVals: rbarray.IntArray{1, 3, 5}}
        fmt.Println(array.Pop())

// output
// 5
}