mastodon.online is one of the many independent Mastodon servers you can use to participate in the fediverse.
A newer server operated by the Mastodon gGmbH non-profit

Server stats:

11K
active users

#currying

0 posts0 participants0 posts today
Zuri (he/him) 🕐 CET<p>Another <a href="https://mastodon.online/tags/CodeGolf" class="mention hashtag" rel="tag">#<span>CodeGolf</span></a> puzzle for <a href="https://mastodon.online/tags/JavaScript" class="mention hashtag" rel="tag">#<span>JavaScript</span></a> <a href="https://mastodon.online/tags/WebDev" class="mention hashtag" rel="tag">#<span>WebDev</span></a> people:</p><p>I have n functions that type one argument of the same type and return a boolean.</p><p>The current usage is:<br />function a(b) {<br /> return c(b) &amp;&amp; d(b)<br />}</p><p>I boiled down a to<br />a = (b) =&gt; [c, d].every(fn =&gt; fn(x))</p><p>I assume, this can be further boiled down via bind/ <a href="https://mastodon.online/tags/PartialApplication" class="mention hashtag" rel="tag">#<span>PartialApplication</span></a>/ <a href="https://mastodon.online/tags/Currying" class="mention hashtag" rel="tag">#<span>Currying</span></a> </p><p>What do you think? </p><p><a href="https://mastodon.online/tags/amCoding" class="mention hashtag" rel="tag">#<span>amCoding</span></a> <a href="https://mastodon.online/tags/amProgramming" class="mention hashtag" rel="tag">#<span>amProgramming</span></a> <a href="https://mastodon.online/tags/webDevelopment" class="mention hashtag" rel="tag">#<span>webDevelopment</span></a> <a href="https://mastodon.online/tags/softwareDevelopment" class="mention hashtag" rel="tag">#<span>softwareDevelopment</span></a> <a href="https://mastodon.online/tags/softwareEngineering" class="mention hashtag" rel="tag">#<span>softwareEngineering</span></a></p>
CuriousCoder<p>What is Currying?</p><p><a href="https://mastodon.social/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a>, named after Haskell Curry (1900-1982), is a technique of transforming a function that takes multiple arguments into a sequence of functions, each taking a single argument. For example, a function f(a, b, c) becomes f(a)(b)(c).</p><p>This is accomplished using closures. When you call f(a), it returns a new function that "remembers" the value of a. When you then call that returned function with b, it returns another function that remembers both a and b, and so on. This ...</p>
Alexander Bandukwala<p>Currying in languages with implicit effects seems sketchy—effectful functions returning other functions obscure when effects are interleaved. Users see it as just multiple arguments, not realizing some parameter applications might be expensive. <a href="https://fosstodon.org/tags/ProgrammingLanguages" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingLanguages</span></a> <a href="https://fosstodon.org/tags/Currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Currying</span></a> <a href="https://fosstodon.org/tags/AutomaticCurrying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AutomaticCurrying</span></a></p>
CuriousCoder<p>Currying Explained! 🌟 </p><p>Named after Haskell Curry, it doesn't involve spices! 🍛 </p><p>Currying transforms a function into a series of nested functions, each with access to variables via closures. This makes functions more modular and reusable.</p><p><a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webdev</span></a> <a href="https://mastodon.social/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a> <a href="https://mastodon.social/tags/closures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>closures</span></a></p>
Habr<p>Расширение Функциональных Интерфейсов Java</p><p>За годы прошедшие с их появления в Java8 у меня набралась коллекция полезных решений и шаблонов, которые я переносил из проекта в проект, и которые в стандартной версии так и не были осуществлены. Недавно я решил собрать все вместе в небольшом проекте с открытым кодом. В первом релизе проекта расширения охватывают следующие аспекты:</p><p><a href="https://habr.com/ru/articles/812451/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/812451/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/Java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Java</span></a> <a href="https://zhub.link/tags/functional_interface" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functional_interface</span></a> <a href="https://zhub.link/tags/functional_programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functional_programming</span></a> <a href="https://zhub.link/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a> <a href="https://zhub.link/tags/multimethods" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>multimethods</span></a> <a href="https://zhub.link/tags/exception" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>exception</span></a> <a href="https://zhub.link/tags/exception_handling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>exception_handling</span></a> <a href="https://zhub.link/tags/extensions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>extensions</span></a> <a href="https://zhub.link/tags/interception" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>interception</span></a> <a href="https://zhub.link/tags/java_21" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>java_21</span></a></p>
Nblix 👨‍💻🐶📘🇸🇪<p>Heute mal eingehender mit <a href="https://burningboard.net/tags/Kotlin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kotlin</span></a> beschäftigen. Finde ich, als <a href="https://burningboard.net/tags/Scala" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scala</span></a> Dev, sehr spannend mal zu vergleichen... Hab gestern schonmal die "Tour of Kotlin" gemacht und bin jetzt auf die Detaills gespannt! v.a. gibt es sowas wie <a href="https://burningboard.net/tags/partialFunctions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>partialFunctions</span></a>, <a href="https://burningboard.net/tags/Currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Currying</span></a> und sowas wie Option?</p>
benjohn<p><a href="https://noparticular.place/tags/nLab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nLab</span></a> has an entry on <a href="https://noparticular.place/tags/Currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Currying</span></a>, but it doesn't (seem to?) mention a sum type <a href="https://noparticular.place/tags/dual" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dual</span></a>. <a href="https://ncatlab.org/nlab/show/currying" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">ncatlab.org/nlab/show/currying</span><span class="invisible"></span></a> <a href="https://noparticular.place/tags/CategoryTheory" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CategoryTheory</span></a></p>
sofia ☮️🏴<p>does any <a href="https://chaos.social/tags/programmingLanguage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programmingLanguage</span></a> have something like partial evaluation based on named parameters? so like <a href="https://chaos.social/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a>, but you can add the parameters in any order, and get a function back that that evaluates the still missing parameters?<br>it seems pretty handy to me…</p><p>here is an example for how i think this could work in <a href="https://chaos.social/tags/JS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JS</span></a>:</p>
HoldMyType<p>"un- <a href="https://mathstodon.xyz/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a>, is useful in some situations. eg, let's say we want to split a list into two parts - elements that are smaller than 10 and the rest, and then concatenate those two lists. Splitting of the list is done by partition (&lt; 10) (here we also use curried &lt;). The result is of type ([Int],[Int]). Instead of extracting the result into its first and second part and combining them using ++, we can do this directly by uncurrying ++ as</p><p>uncurry (++) . partition (&lt; 10)"<br> <a href="https://softwareengineering.stackexchange.com/questions/185585/what-is-the-advantage-of-currying" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">softwareengineering.stackexcha</span><span class="invisible">nge.com/questions/185585/what-is-the-advantage-of-currying</span></a></p>
Sven Ruppert<p>my talk from <a href="https://mastodon.social/tags/jdconf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jdconf</span></a> 2022 about - <a href="https://mastodon.social/tags/functional" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functional</span></a> <a href="https://mastodon.social/tags/reactive" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>reactive</span></a> with core <a href="https://mastodon.social/tags/java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>java</span></a> // <a href="https://mastodon.social/tags/exceptions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>exceptions</span></a> <a href="https://mastodon.social/tags/functionaltraining" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functionaltraining</span></a> <a href="https://mastodon.social/tags/jdk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jdk</span></a> <a href="https://mastodon.social/tags/conditions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>conditions</span></a> <a href="https://mastodon.social/tags/memoizing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>memoizing</span></a> <a href="https://mastodon.social/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a> <a href="https://mastodon.social/tags/functionalprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functionalprogramming</span></a> <a href="https://youtu.be/Ly81s7cDcTY" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/Ly81s7cDcTY</span><span class="invisible"></span></a></p>
Sven Ruppert<p>my talk from <a href="https://mastodon.social/tags/jdconf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jdconf</span></a> 2022 about - <a href="https://mastodon.social/tags/functional" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functional</span></a> <a href="https://mastodon.social/tags/reactive" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>reactive</span></a> with core <a href="https://mastodon.social/tags/java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>java</span></a> // <a href="https://mastodon.social/tags/exceptions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>exceptions</span></a> <a href="https://mastodon.social/tags/functionaltraining" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functionaltraining</span></a> <a href="https://mastodon.social/tags/jdk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jdk</span></a> <a href="https://mastodon.social/tags/conditions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>conditions</span></a> <a href="https://mastodon.social/tags/memoizing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>memoizing</span></a> <a href="https://mastodon.social/tags/currying" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>currying</span></a> <a href="https://mastodon.social/tags/functionalprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>functionalprogramming</span></a> <a href="https://youtu.be/Ly81s7cDcTY" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/Ly81s7cDcTY</span><span class="invisible"></span></a></p>