Popularity
2.1
Growing
Activity
0.0
Stable
4
1
0

Monthly Downloads: 9
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data     Language     Lambda    

lambda-placeholders alternatives and similar packages

Based on the "language" category.
Alternatively, view lambda-placeholders alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of lambda-placeholders or a related project?

Add another 'language' Package

README

lambda-placeholders

lambda-placeholders is a Haskell library to emulate the placeholders feature of Scala.

Background

  • Placeholders in Scala act similar to those used in category theory.
  • Rather than create a lambda or name a function, an underscore is used in place of a parameter and the function is abstracted over that location.
  • This placeholders library doesn't use underscores, rather it leverages similar capabilities found in TupleSections.
  • A description of Scala placeholders can be found here.

Example

{-# LANGUAGE
 TupleSections 
 #-}
module Main where 
import Language.LambdaPlaceholders

foo (a,b,c) = a + b + c

curried_foo = foo.$.(2, , )

main = do
    putStrLn $ show $ curried_foo 4 5