SaveSnippets
Community
Pricing
Sign In
Get Started
Community
Public Snippets
1
Code shared by the SaveSnippets community — browse, copy, and get inspired.
All Languages
Bash
Go
HTML
Java
JavaScript
Kotlin
PHP
Python
Rust
SQL
TypeScript
#triple
Clear
Tags
#php
#kotlin
#bash
#go
#sql
#rust
#typescript
#html
#java
#python
#files
#utils
#strings
#http
#concurrency
#async
#json
#arrays
#security
#types
#crypto
#database
#dates
#format
Kotlin
Pair, Triple, and to() Infix
`Pair<A,B>` and `Triple<A,B,C>` are stdlib lightweight tuples. The `to` infix returns a Pair — used everywhere for map literals.
#kotlin
#pair
#triple
#to
#tuples