- Mastering Immutable.js
- Adam Boduch
- 69字
- 2021-07-08 10:30:07
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
推薦閱讀
- TypeScript Blueprints
- ASP.NET Core Essentials
- FreeSWITCH 1.6 Cookbook
- BeagleBone Media Center
- MySQL數據庫管理與開發實踐教程 (清華電腦學堂)
- 概率成形編碼調制技術理論及應用
- RabbitMQ Essentials
- Swift Playgrounds少兒趣編程
- C和C++游戲趣味編程
- HTML 5與CSS 3權威指南(第3版·上冊)
- Android應用案例開發大全(第二版)
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- HoloLens與混合現實開發
- UML軟件建模
- Ext JS 4 Plugin and Extension Development