ES7 function bind syntax will add the ::
operator for working with these kind of functions:
/* ES7 */
import { map, takeWhile, forEach } from "iterlib";
getPlayers()
::map(x => x.character())
::takeWhile(x => x.strength > 100)
::forEach(x => console.log(x));
These are being referred to as virtual methods, which seems like a misnomer when considering the oop definition.
Is there a proper name?