官术网_书友最值得收藏!

Stacks

A stack is like a list because it's an indexed collection. The main difference with stacks is that they're really good at adding and removing values from the front of the collection. If you're implementing something that's first-in, first-out (FIFO), stacks are a good bet. Otherwise, stay away from stacks:

import { Stack } from 'immutable';
const myStack = Stack();
console.log('Stack', myStack instanceof Stack);
// -> Stack true
主站蜘蛛池模板: 古交市| 汉中市| 通城县| 福泉市| 灵武市| 永城市| 建阳市| 龙里县| 西安市| 玛曲县| 高碑店市| 宁蒗| 康乐县| 宣汉县| 新蔡县| 杭锦后旗| 青神县| 嘉鱼县| 延川县| 大宁县| 英超| 佳木斯市| 雅安市| 洪泽县| 景谷| 夹江县| 玉门市| 呼玛县| 临西县| 新郑市| 札达县| 黄山市| 博爱县| 阿克苏市| 大洼县| 界首市| 武隆县| 安西县| 叙永县| 德惠市| 金川县|