- nv-array-set-inplace
- ordered Array as Set, used in nvgraph, normally USELESS
- npm install nv-array-set-inplace
> 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
]
>
> 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]
}
>