Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

io.github.mattjp:scalatrie_2.13

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io.github.mattjp:scalatrie_2.13

Trie data structure for Scala.

  • 1.0.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

ScalaTrie

An immutable and purely functional Trie class written in Scala.

Usage

Add the library to build.sbt dependencies:

libraryDependencies += "io.github.mattjp" %% "scalatrie" % "1.0.1"

Add the library to Scala code:

import trie.Trie

val trie: Trie =  Trie().addMany(Seq("trie", "tree"))

trie.validWord("trie") // true
trie.validWord("tr")   // false
trie.validPrefix("tr") // true
trie.getSuffixes("tr") // ["ie", "ee"]

val updatedTrie: Trie = trie.remove("tree")

Publishing

  1. Update ~/.sbt/sonatype_credentials with proper publishing credentials.
  2. version in build.sbt should not include the -SNAPSHOT suffix.
  3. Run sbt publishSigned.
  4. Navigate to the Nexus staging repositories page: https://s01.oss.sonatype.org/#stagingRepositories (login with Sonatype credentials).
  5. Close the staging repository through the console.
  6. Release the staging repository through the console.

FAQs

Package last updated on 31 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc