パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリammaratef45/dart_stack

dart_stack

スタックデータ構造用のDartパッケージ

dart_stack のプロジェクト画像
スター
18
フォーク
13
最終プッシュ(UTC)
2023/12/09
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

dart_stack

A dart package for stack datastructure

pub codecov CircleCI

Usage

Add dev dependency to your pubspec.yaml:

dev_dependencies:
  stack: ^0.0.1

Run pub get to install.

How it works

Import

import 'package:stack/stack.dart';

Example

// Initialize
Stack<String> stack = Stack();
// Push
stack.push('abc');
// See the top
stack.top();
// Pop the top
stack.pop();
// Check for empty
stack.isEmpty;
// Check for non-enpty
stack.isNotEmpty;
// see if the stack has a certain object
stack.contains("abc");
// print the complete stack
stack.print();
// get size of current stack
stack.size() || var s = stack.size()

Exceptions

Trying to use top() or pop() on an empty stack throws IllegalOperationException. use size(), isEmpty, or isNotEmpty to check before using these operations.

Feel free to file feature requests and bug reports at the issue tracker.

Ammar GitHub avatar
GitHub 作者

Ammar ↗

The internet has degraded, let's revive it somehow

言語Dart

カテゴリー

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 1 件

  • test開発用^1.16.8

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗