nv-array-set-inplace
v1.0.4
Published
nv-array-set-inplace ==================== - nv-array-set-inplace - ordered Array<Int> as Set, used in nvgraph, normally USELESS
Downloads
2
Readme
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