question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does language-ext have a Using() function?

See original GitHub issue

Hello,

One of the functions Enrico Buonanno shows in Functional Programming In C# is the following…

static R Using<TDisp, R>(TDisp disposable, Func<TDisp, R> f) where TDisp : IDisposable {
  using (disposable) return f(disposable);
}

Does language-ext have such a function?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
TysonMNcommented, Jan 30, 2019

Yes, there are several overloads called use.

1reaction
MrYossucommented, Jan 31, 2019

@bender2k14 I was hoping for something like you see on the project’s main page, where there are links to things like Try(). There’s not much there in the way of documentation, but at least you can see that the function exists.

Bear in mind that I’m not familiar with all the features of the package, it’s very hard finding out what’s in there and what it all does.

Thanks anyway, at least now I know use exists, I can play with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# Functional Programming Language Extensions
C# Functional Programming Language Extensions. This library uses and abuses the features of C# to provide a functional-programming 'base class library' that ...
Read more >
C# Functional Language Extensions
To use this library, simply include LanguageExt.Core.dll in your project or grab it from NuGet. And then stick this at the top of...
Read more >
Functional Programming made easy in C# with Language-ext
Basically FP is all about functions and immutability : Pure functions; Lambda functions (anonymous); High order functions; Composition; Closures; Currying & ...
Read more >
Functional Programming made easy in C# with Language-ext
According to the creator of the lib Paul Louth : It's a library that uses and abuses the features of C# to provide...
Read more >
Using Language Ext - Stuart Mathews
Using Language Ext · Have a Select() extension method extracts an item from the Monad and allows a function to run for each...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found