
unlambda

unlambda anedi david mador kanipettina kaneesa, daadaapu swachchamaina "kriyaatmaka prograaming bhasha. idhi lambda operator ledhaa free variables laeni vyakteekarana vyavastha ayina combinatory logicpy aadharapadi untundi. idhi pradhanamgaa rendu antarnirmita vidhulu (coque _ 1 mariyu coque _ 2) mariyu oka vartinche operator (vraasina coque _ 3, byaak coat aksharam) paie aadhaarapadutundi. ivi matrame dheenini turing-complete chestaayi, conny viniyogadaaruto paraspara charya cheyadaaniki konni input/avtput (i/o) functionlu, konni satwaramarga functionlu mariyu somaritanam moolyaankanam function kooda unnaayi. chararaasulu maddatu laenivi.
unlambda anedi uchita mariyu open soars software, idhi gnu general public licenses (gpl) 2 ledhaa taruvaata pampinhee cheyabadutundi.
praathamika suutraalu.
oka niguuda prograaming bhashaga, analambda anedi aacharanaatmaka upayogam kosam kakunda chaalaa swachchamaina kriyaatmaka prograaming yokka pradarsanagaa uddesinchabadindi. dheeni pradhana lakshanam sampradaaya operatorlu mariyu dayta rakaala lekapovadam-prograamlooni ekaika rakamaina dayta oka-paramiti vidhulu. ayinappatikee lambda calculus loe vale tagina vidhulatho daetaanu anukarinchavacchu. bahula-paramiti vidhulanu kuura paddhati dwara suuchimchavachchu.
unlambda anedi obstraction elemination suutram ledhaa functionlatho sahaa anni save cheyabadina chararaasula tolagimpu meeda aadharapadi untundi. puurtigaa kriyaatmaka bhashaga, unlambda yokka vidhulu modati-taragati vastuvulu, mariyu avi "matrame" atuvanti vastuvulu.
ikkada oka halo varald programme amalu undhi, idhi unlambdalo undih
 aarr "" "" ".hetch.ii.ell.ell.o. .doubleu.o.aarr.ell.dii
asalu antarnirmita vidhulu.
notation coque _ 4 anedi oka vaadananu teesukoni daanini marchakunda tirigi ichhe functionnu suuchistumdi, oke aksharam "x" nuu prerepinchinappudu side effectga mudristundi. coque _ 5 atuvanti side effect laeni identity function yokka versionnu suuchistumdi; idhi ikkada dummy argumentga upayoginchabadutundi. programme cock _ 6 cock _ 5 yokka dummy vaadanaku cock _ 7 printing functionnu vartimpajestundi, cock _ 5nii tirigi istundi mariyu cock _ 7 aksharanni side effectga mudristundi. adevidhamgaa, coque _ 11 modata coque _ 13kii coque _ 12nii vartimpajestundi, coque _ 14nii mudrinchi, coque _ 13nii tirigi istundi; coque _ 13 yokka eee phalitam munupati udaaharanalo vale coque _ 5kii vartinchabadutundi. function cock _ 18 anedi kotta line aksharanni mudrinche function kosam vaakyanirmaana chakkera.
analambda andinchina itara mukhyamaina lakshanaalalo coque _ 2 mariyu coque _ 1 functionlu unnaayi. coque _ 2 sthiramaina vidhulanu tayaaru chestundih coque _ 22 yokka phalitam oka function, idhi aahvaaninchinappudu, "x" nii tirigi istundi. anduvalla coque _ 23 viluva edainaa "x" mariyu "y" kii "x" avutundi.
coque _ 1 anedi oka saadhaarana muulyaankana operator. coque _ 25 anedi edainaa "x", "y", mariyu "z" kosam coque _ 26 kuu moolyaankanam chestundi. skii combinator calculuslo vivarinchina vidhamgaa, yea ganananu nirvahinchadaaniki coque _ 1 mariyu coque _ 2 saripothayi anedi oka visaeshamaina vaastavam. oka sankshipta udaaharanagaa, identity function coque _ 5 nuu coque _ 30 gaa amalu cheyavachu, endukante coque _ 31 anni "x" laku "x" istundi.
analambda yokka oka pravaaha niyantrana nirmaanam prastuta konasagimputo coll, dheenini cutch _ 32 anie suuchistaaru. cutch _ 33 roopam yokka vyakteekarana moolyaankanam cheyabadinappudu, oka pratyeka "konasagimpu" vastuvu nirminchabadutundi, idhi aaa samayamlo vyaakhyaata yokka sthithini suuchistumdi. appudu "x" moolyaankanam cheyabadutundi, aapai phalitam konasagimpu vastuvu oka vaadanagaa ivvabadutundi. konasagimpu anedi oka vaadanaku eppuduu vartinchakapothe, coque _ 33 vyakteekarana yokka viluva "x" viluvaku samanamga untundi. conny konasagimpu vastuvu "y" viluvaku vartimpajeste, "x" yokka amalu ventane nilipiveyabadutundi, mariyu mottam cock _ 33 vyakteekarana yokka viluva "y" avutundi.
analambda yokka amalu ardhashaastram saadhaaranamgaa aasaktigala moolyaankanam, conny oka somaritanam moolyaankanam empika undhi, idhi coque _ 7 operator yokka upayogam dwara suuchimchabadutumdi. saadhaaranamgaa, kauk _ 37 roopam yokka vyakteekarananu anchanaa vaeyadaaniki, unlambda modata "x", taruvaata "y" nuu anchanaa vestundi, aapai "x" nuu "y" kuu vartimpajestundi. ayithe, "x" anedi pratyeka viluva ayina coc _ 7kii moolyaankanam chesthe, appudu "y" anedi "moolyaankanam cheyabadadu"; badulugaa, vyakteekarana ayina coc _ 39 yokka viluva oka pratyeka "aalasya ganana" vastuvu, idhi oka vaadana "z" kuu vartimpajesinappudu, "y" nuu moolyaankanam chestundi, aapai daani viluvanu "z" kuu vartimpajestundi. side effects lenappudu, idhi sarigga coque _ 40 maadirigaane untundi. thedaa emitante coque _ 40 edainaa side effectsnu "y" loe ventane amalu chestundi, ayithe coque _ 39 maroka vaadanaku phalitam vartinche varaku side effectsnu vaida vestundi.
analambda yokka tadupari antarnirmita operator kaake _ 43, idhi daani vaadananu vismarinchi, kaake _ 43nii andistundi. eee lakshanam khachitamgaa avasaram ledhu, endukante kaake _ 43nii kaake _ 46gaa amalu cheyavachu, conny idhi soulabhyam kosam sarafara cheyabadutundi. (paina perkonna eee vyakteekarana kevalam coque 47, ikkada coque 48 anedi sthira binduvu kalayikanu suuchistumdi.)
version 2 antarnirmita vidhulu.
marinta antarnirmita inlu analambda version 2loe pravesapettabaddaayi. operatorlu cock 49 mariyu cock 50 dwara input sulabhataram cheyabadutundi. cock 49 nuu "x" functionku vartimpajesinappudu, input nundi oka aksharam chadavabadutundi mariyu "current aksharam" gaa nilva cheyabadutundi; appudu "x" cock 5kii vartinchabadutundi. ayithe, inputlo ekkuva aksharalu andubaatulo lekapothe, "current aksharam" nirvachinchabadadu, mariyu badulugaa "x" cock 43kii vartinchabadutundi. oka function "x" kuu oka function coque _ 50 vartimpajesinappudu, prastuta aksharam "u" ayithe phalitam coque _ 55 yokka moolyaankanam avutundi, lekapothe coque _ 56 moolyaankanam cheyabadutundi.
oka "reprint" operator kooda undhi. cock 58 moolyaankanam cheyabadinappudu, "u" prastuta aksharam ayithe cock 59kii ledhaa prastuta aksharam lekapothe cock 43kii "x" function vartinchabadutundi.
chivaraku, oka nishkramana operator cock _ 61 undhi. cock _ 61 nuu "x" kuu vartimpajesinappudu, programme yokka amalu nilipiveyabadutundi mariyu programme phalitamgaa "x" teesukobadutundi (prastutam unna vyaakhyaatalalo chaalaa mandhi emainappatiki phalitaanni vismaristaaru).

