MyList
MyList is a non-empty list library which is used in a BigInt module.
Type
MyList is a discriminated union with One of 't or Cons of 't * MyList<t>. That makes MyList a non-empty list
Functions
head (_arg1:MyList<'t>)- returns a head of a listtail (_arg1:MyList<'t>)- reurns a tail of a listfold (folder:'a -> 'b -> 'a) (acc:'a) (l:MyList<'b>)- changes a sign of a numberlen (l:MyList<'t>)- returns a length of a listconcat (l1:MyList<'t>) (l2:MyList<'t>)- deletes all zeroes from the begining of a listmap (mapping:'a -> 'b) (l:MyList<'a>)- returns a list to whose elements the given function has been appliediter (action:'a -> unit) (l:MyList<'a'>)- applies a given function to each element of a listbubbleSort (l:MyList<'t>)- returns a sorted listlistToMyList (l:List<'t>)- convertsListtoMyListmyListToList (l:MyList<'t>)- convertsMyListtoListreverse (x:BigInt)- returns a list with elements in a reversed ordermap2 (mapping:'a -> 'b) (x:MyList<'a>) (y:MyList<'a>)- returns two list to whose elements the given function has been appliedintToMyList (i:int)- convertsinttoMyList