- 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
推薦閱讀
- 程序員面試白皮書
- 零基礎學C++程序設計
- Mastering Ember.js
- 三維圖形化C++趣味編程
- Groovy for Domain:specific Languages(Second Edition)
- 零基礎學Java程序設計
- Interactive Applications Using Matplotlib
- FFmpeg入門詳解:音視頻原理及應用
- Unreal Engine 4 Shaders and Effects Cookbook
- 微信小程序開發與實戰(微課版)
- 大話Java:程序設計從入門到精通
- Flowable流程引擎實戰
- UI設計全書(全彩)
- ScratchJr趣味編程動手玩:讓孩子用編程講故事
- Java程序設計教程