Giter Club home page Giter Club logo

scala_utils's Introduction

scala_utils

Library with some useful things for my Scala needs

Get the library

Simply download the file scala_utils.jar in the out folder, or click here.

Contents

  • util - main package, contains various useful classes and objects
    • Odds [mutable] - implementation of Pondered with a fetching method that uses RNG as ponderation
    • Pondered [mutable] - trait that contains a Seq of tuples (element, ponderation) that can be fetched according to a certain ponderation rule
    • Random - static object version of the scala.util.Random class
    • Sequence [mutable] - class describing a simple mathematical sequence with an initial value and a function that is applied everytime next or skip is called
    • collection - contains immutable collection classes
      • Ring [immutable] - class describing a zipper-list-like structure with both ends linked together
      • Zipper [immutable] - class describing an immutable list that you can browse forwards or backwards. [to be extended into a tree version]
    • exception - contains custom exceptions
      • EmptyRingException - thrown when trying to create a Ring with no values inside
      • EndOfZipperException - (unused yet) thrown when trying to read past the end points of a zipper
      • BadCoordSystemException - thrown when trying to create a CoordSystem with parallel or null vectors
    • geometry - contains basic classes for geometry
      • CoordSystem [immutable] - class describing a cartesian coordinate system for the plane
      • BaseCoordSystem [immutable] - object describing the default coordinate system, origin (0, 0) and vectors (1, 0) and (0, 1)
      • Point [immutable] - point on the plane, described relatively to a coordinate system (base system by default)
      • Vector [immutable] - vector on the plane, described relatively to a coordinate system (base system by default)
    • tool - contains various, more specific functions
      • DeclineZipper - very specific function that returns a list of all possible zipper states from a list passed as an argument
      • IO - functions for reading and using files
      • Shuffle - very simple function that shuffles a list of arguments (O(n))

scala_utils's People

Contributors

hiinofw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.