Skip to content

Instantly share code, notes, and snippets.

View dalinaum's full-sized avatar
:octocat:
Learning Rust and IR.

LYK dalinaum

:octocat:
Learning Rust and IR.
View GitHub Profile
@dalinaum
dalinaum / PipeForward.md
Created April 18, 2023 14:21 — forked from nishanthvijayan/PipeForward.md
Simple Pipe forward operator in Kotlin

Here I try to implement a simple pipe forward operator similar to |> operator in Elixir or the andThen operator in Scala

Let's say you have a need for doing something like this

val x = f("something")
val y = g(x)
val z = h(y)

This is also equivalent to saying:

#!/usr/bin/env perl
use utf8;
use strict;
use warnings;
use WWW::Mechanize;
binmode STDOUT, ':encoding(UTF-8)';
use constant {
PROGRAMMING_GALLERY => 'http://gall.dcinside.com/list.php?id=programming',