Git Product home page Git Product logo

vector's People

Contributors

joseph-walker avatar loganhenson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vector's Issues

Monad \ Sequence

sequence :: Monad m => [m a] -> m [a]
Convert a list of monad into a monad of list

Memoize 'using' on module import.

This is low hanging fruit for optimization. When calling Module::using() in multiple places and requesting the same function, memoize and store the result of the internal reflection call so that a single reflection is never duplicated.

Math \ Product

product :: [Num] -> Num
Returns the product of the given list

Math \ Negate

negate :: Num -> Num
Returns the given number * -1

ArrayList \ DropWhile

dropWhile :: (a -> Bool) -> [a] -> [a]
Returns the list sans the first elements that pass the given test

ArrayList \ All

all :: (a -> Bool) -> [a] -> Bool
Returns true if every element of [a] passes the given test.

ArrayList \ Drop

drop :: Int -> [a] -> [a]
Returns the given list sans the first n elements

Math \ Min

min :: Num -> Num -> Num
Returns the minimum of its two arguments

Math \ Max

max :: Num -> Num -> Num
Returns the maximum of its two arguments

Strings \ Trim

trim :: String -> String
Returns a string with leading and trailing whitespace removed

ArrayList \ FindIndex

findIndex :: (a -> Bool) -> [a] -> Maybe Int
Attempts to find an element's index by using a given test

ArrayList \ DropLastWhile

dropLastWhile :: (a -> Bool) -> [a] -> [a]
Returns the list sans the last elements that pass the given test

ArrayList \ TakeWhile

takeWhile :: (a -> Bool) -> [a] -> [a]
Take items from a list while a given test passes

ArrayList \ Adjust

adjust :: (a -> a) -> Int -> [a] -> [a]
Applies a function to the value at a given index.

Object \ Call

call :: String -> Object -> a
Call the method String on the given Object and return its result

ArrayList \ Find

find :: (a -> Bool) -> [a] -> Maybe a
Attempts to find an element by using a given test

Missing Documentation \ Module

The module lacks documentation. Things that should be covered in the docs:

  • How Module works
  • How to create your own module

Math \ Mod

mod :: Int -> Int -> Int
Modulus operator, divisor is first argument

ArrayList \ Any

any :: (a -> Bool) -> [a] -> Bool
Returns true if any element of [a] passes the given test

Logic \ Or

or :: Bool -> Bool -> Bool
Logical or

Math \ Range

range :: Int -> Int -> [Int]
Returns all integers between the given arguments, inclusive

ArrayList \ Zip

zip :: [a] -> [b] -> [[a, b]]
Zip two lists together into a 2-d array pairwise

Math \ Sum

sum :: [Num] -> Num
Returns the sum of the given list

ArrayList \ DropLast

dropLast :: Int -> [a] -> [a]
Returns the given list sans the last n elements

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.