Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Lambda

Guides

  • Guide

Symbols

  • BetaReduce
  • BetaReductions
  • BLCLambda
  • ColorizeLambda
  • CombinatorLambda
  • EnumerateLambdas
  • EtaReduce
  • EvalLambda
  • FunctionLambda
  • LambdaApplication
  • LambdaBLC
  • LambdaBrackets
  • LambdaCombinator
  • LambdaConvert
  • LambdaDiagram
  • LambdaFunction
  • LambdaGraph
  • LambdaSmiles
  • LambdaString
  • LambdaTree
  • ParseLambda
  • RandomLambda
Wolfram`Lambda`
ParseLambda
​
ParseLambda
[string]
parse
string
into a lambda term.
​
​
ParseLambda
[string,type]
specify type of the string.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Parse lambda string with explicit variables:
In[1]:=
ParseLambda
["λn.λf.λx.n(λg.λh.h(g f))(λu.x)(λu.u)"]
Out[1]=
λ[λ[λ[3[λ[λ[1[2[4]]]]][λ[2]][λ[1]]]]]
In[2]:=
LambdaString
[%]
Out[2]=
(λn.(λf.(λx.(((n (λg.(λh.(h (g f))))) (λu.x)) (λu.u)))))
Parse lambda written with indices:
In[3]:=
ParseLambda
["(λ 1 1) (λ 1 (1 (λ λ 1 2 (λ λ 2 (2 1)))))","Indices"]
Out[3]=
λ.[1[1]][λ.[1[1[λ.[λ.[1[2][λ.[λ.[2[2[1]]]]]]]]]]]
In[4]:=
LambdaString
[%,"Indices"]
Out[4]=
((λ (1 1)) (λ (1 (1 (λ (λ ((1 2) (λ (λ (2 (2 1)))))))))))
SeeAlso
LambdaString
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com