- 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
推薦閱讀
- Learn Type:Driven Development
- Java入門經典(第6版)
- C和C++安全編碼(原書第2版)
- React Native Cookbook
- Apache Spark 2.x for Java Developers
- Mastering Data Mining with Python:Find patterns hidden in your data
- Go語言編程
- IPython Interactive Computing and Visualization Cookbook
- Solr權威指南(下卷)
- 量子計算機編程:從入門到實踐
- C語言程序設計實驗指導
- Python自動化運維:技術與最佳實踐
- Flutter for Beginners
- 開源心法
- Mastering Docker(Second Edition)