Top "Method-chaining" questions

Method chaining, also known as named parameter idiom, is a common syntax for invoking multiple method calls in object-oriented programming languages.

What is the accepted/recommended syntax for Scala code with lots of method-chaining?

In Scala I tend to favour writing large chained expressions over many smaller expressions with val assignments. At my company …

scala syntax coding-style method-chaining
Dynamic chaining "thenReturn" in mockito

I have a Tuple mock class, whose getString(0) and getString(1) methods are expected to be called n times. Instead of …

java unit-testing mockito chaining method-chaining
Is there a way to call multiple functions on the same object with one line?

Just trying to tidy up a program and was wondering if anyone could feed me some syntax sugar with regard …

c++ method-chaining syntactic-sugar function-calls member-functions
jQuery - Chaining custom functions

I am wondering how to chain my custom functions and maintain context of 'this'. Example: $.fn.foo = function() { var html = …

javascript jquery method-chaining
Underscore.js _.tap() function what is a method chain?

The Underscore.js documentation explains that the _.tap() function "taps" into a method chain. http://underscorejs.org/#tap I have …

javascript underscore.js chaining method-chaining
Method Chaining vs |> Pipe Operator

So I have the following code: // Learn more about F# at http://fsharp.net open System open System.Linq open …

map filter f# method-chaining c#-to-f#
Convert a collection into an Eloquent object

Currently I'm using the Xero API inside Laravel 5.2. I would like to use the power of Eloquent with this data. …

php laravel-5 eloquent method-chaining xero-api
Method chaining + inheritance don’t play well together?

This question has been asked in a C++ context but I'm curious about Java. The concerns about virtual methods don't …

java inheritance method-chaining