nv-array-set-inplace

1.0.4 • Public • Published

nv-array-set-inplace

  • nv-array-set-inplace
  • ordered Array as Set, used in nvgraph, normally USELESS

install

  • npm install nv-array-set-inplace

usage

example

    > var arr = [1,3,5]
    > ary_st.add(arr,0)
    [ 0, 1, 3, 5 ]
    > ary_st.add(arr,1)
    [ 0, 1, 3, 5 ]
    > ary_st.add(arr,2)
    [ 0, 1, 2, 3, 5 ]
    > ary_st.add(arr,3)
    [ 0, 1, 2, 3, 5 ]
    > ary_st.add(arr,4)
    [ 0, 1, 2, 3, 4, 5 ]
    > ary_st.add(arr,5)
    [ 0, 1, 2, 3, 4, 5 ]
    > ary_st.add(arr,6)
    [
      0, 1, 2, 3,
      4, 5, 6
    ]
    > 

    > var arr = [1,4,9]
    > ary_st.union(arr,[0,3,4,7,11])
    [
      0, 1,  3, 4,
      7, 9, 11
    ]
    > 

API

    > ary_st
    {
      ibfr_with_conder: [Function: ibfr_with_conder],
      iaft_with_conder: [Function: iaft_with_conder],
      add: [Function: add],
      add_ignore_order: [Function: add_ignore_order],
      del: [Function: del],
      union: [Function: union],
      union_ignore_order: [Function: union_ignore_order],
      diff: [Function: diff],
      inter: [Function: inter]
    }
    > 

LICENSE

  • ISC

Readme

Keywords

none

Package Sidebar

Install

npm i nv-array-set-inplace

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

3.52 kB

Total Files

3

Last publish

Collaborators

  • ihgazni2