ashwinbhaskar / functional-way Goto Github PK
View Code? Open in Web Editor NEWWrite small programs (eg -algorithms) in a functional way.
License: GNU General Public License v3.0
Write small programs (eg -algorithms) in a functional way.
License: GNU General Public License v3.0
The quick sort implemented in the folder Scala-Way is using a mutable array. Can/Should this be done in an immutable way?
In the scala transformBST code, you have this comment: https://github.com/ashwinbhaskar/functional-way/blob/master/scala-way/src/main/scala/tree/TransformBST.scala#L3
But the tree underneath is doing something completely different.
First it is not summing nodes greater or equal, it is excluding itself. But then the two 6es should still have the same value. So what I think this does is just summing the values that are to the left, am I right?
The implementation of Heap sort under Scala-Way is using a mutable array. Even though the mutable array is private and is only accessible through a few public methods, I think there are ways of implementing it in an immutable way - using braun trees?
The current Scala version used in Scala-Way is 2.12.8
. With dotty entering feature freeze, now could be good time to try the migration. Try to see which features of dotty can be incorporated in the repo other than the obvious ones (indentation syntax, main launcher etc)
Hello there,
this is not really an issue. FWIW I just wanted to show the Scala equivalent of https://github.com/ashwinbhaskar/functional-way/blob/master/haskell-way/src/QuickSort.hs.
I came across it here: https://www.slideshare.net/pjschwarz/ad-hoc-polymorphism-using-type-classes-and-cats#2
Cheers.
The scala-way folder has property based testing using Scala Check. But I am not sure about how to go about with property based testing for Clojure in the folder Clojure-Way.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.