Giter Club home page Giter Club logo

monad-challenges-purescript's People

Contributors

abhiranjankumar00 avatar angerman avatar deathgrindfreak avatar frerich avatar gutjuri avatar jcguu95 avatar jmr avatar kellerb avatar lalaithion avatar liuw avatar mightybyte avatar monga avatar ngzhian avatar ridiculousfish avatar shaunplee avatar xodarap avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

monad-challenges-purescript's Issues

(head:rest) matching pattern is not a common pattern in purescript

Hi, first of all thanks for all your effort porting this.
I was following the Monad challenges and found out that the exercise 2.2

-- Implement all this for our own Maybe
headMay :: forall a. Array a -> Maybe a
tailMay :: forall a. Array a -> Maybe (Array a)
lookupMay :: forall a b. Eq a => a -> Array (Tuple a b) -> Maybe b
divMay :: forall a. Eq a => EuclideanRing a => a -> a -> Maybe a
maximumMay :: forall a. Ord a => Array a -> Maybe a
minimumMay :: forall a. Ord a => Array a -> Maybe a

gets quite complex at least if we want to use only the re-exports from MCPrelude. For example, for headMay, we may need uncons from Data.Array or head from Data.Array.Partial or implement all this functions for Data.List instead of Data.Array. Neither from the previously mentioned are re-exported by MCPrelude.

Please let me know how can I help or which approach should I take when following the Monad Challenges.

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.