# define a construct
data Maybe a = Just a | Nothing
#define martist
martist :: Maybe String
martist = Just "Varen"
#define mtrack
mtrack :: Maybe String
- basic cli module tutorial: javascriptPlayground
- and another one: npm
airpair ;
I hereby claim:
- I am ishestak on github.
- I am irina (https://keybase.io/irina) on keybase.
- I have a public key whose fingerprint is 5EBC 83B1 F568 57CF 0869 646C CBE8 5651 05E0 BEDE
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sample implementation of quicksort and mergesort in ruby | |
| # Both algorithm sort in O(n * lg(n)) time | |
| # Quicksort works inplace, where mergesort works in a new array | |
| def quicksort(array, from=0, to=nil) | |
| if to == nil | |
| # Sort the whole array, by default | |
| to = array.count - 1 | |
| end |
NewerOlder