Mercurial > hg > Database > jungle-sharp
view Test/junge-main/data/treemap/TreeMapDelete.cs @ 20:1f99e150f336
fix folder and add Object Mapper.
author | Kazuma Takeda |
---|---|
date | Thu, 15 Dec 2016 22:52:48 +0900 |
parents | |
children | e954d456665c |
line wrap: on
line source
using UnityEngine; using JungleDB; public class TreeMapDelete : MonoBehaviour { // Use this for initialization void Start () { TreeMap<int,int> map = new TreeMap<int, int> (); for (int count = 1; count < 6; count++) { map = map.put (count, count); map.checkDepth (); } // ただ消すための数字をここに入れているだけ List<int> list = new List<int>(); for (int count = 1; count < 6; count++) { list = list.addLast (count); } foreach(int num in list){ Debug.Log(num); map = map.delete(num); map.checkDepth(); } Debug.Log ("end"); } }