Swiftpack.co - INF800/swift-datastructures as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by INF800.
INF800/swift-datastructures 0.0.1
This is Swift package for different data structures and supported by swift package manager
⭐️ 0
🕓 4 years ago
.package(url: "https://github.com/INF800/swift-datastructures.git", from: "0.0.1")

Data Structures Library - Swift Programming Language

Usage:

  • In Swift-Jupyter Notebooks
  • In Swift Package Manager

I. Importing in Swift-Jupyter Notebooks

Use the following in first cell (after restarting runtime)

%install-location $cwd/swift-install
%install '.package(url: "https://github.com/rakesh4real/swift-datastructures", from:"0.0.1")' DataStructures

Blank swift-jupyter notebook link

Then, import it using

import DataStructures

II. Importing in SPM

In package.swift:

// add this in appropriate place
.package(url: "https://github.com/rakesh4real/swift-datastructures", from:"0.0.1")

// add this in appropriate place i.e taget dependancies
.target(
            name: "DataStructures",
            dependencies: ["DataStructures"]

Then, import it using

import DataStructures

Know more about SPM packages here

Available Data Structures

  • Stack
  • Queue
  • Array2D

GitHub

link
Stars: 0
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

Initial Release
4 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics