Skip to content

ppmasa8/rbarray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/rbarray@v1.0.0

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
}

About

It can handle arrays like ruby.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages