Giter VIP home page Giter VIP logo

scala-stdlib-4-gleam's Introduction

scala_stdlib

Bringing useful functions that exist in Scala to the Gleam language.

Scala is very similar language to Gleam and has a much more rich amount of functions and data types in its standard library.

The effort here is 2 fold:

  • more functionality available in gleam;
  • make it easier to code in gleam coming from scala by making sure the same names and patterns known from that ecosystem exist here;

This is also an effort for me to play around and experiment with Gleam by having a concrete objetive.

import scala_stdlib

pub fn main() {
  let x = none() // Option.None
  let y: Option(Int) = some(1) // Option.Some(1)
  let w = empty() // Option.None
  let z: Option(Int) = when(True, 1) // Option.Some(1)
  let v = when(False, 1) // Option.None
}

Development

gleam run   # Run the project
gleam test  # Run the tests

Progress

  • Option: started bringing some functions for Options. Also added some tests.

TODO

  • Probrably separate into modules later, started with options and am putting everything flat;
  • Change license to more useful one if this goes anywhere;
  • ...

scala-stdlib-4-gleam's People

Contributors

vascorsd 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.