๐ŸŒ
Hhvm
docs.hhvm.com โ€บ tuples
Tuples | Hack & HHVM Documentation
After a tuple has been created, no elements can be added or removed. A tuple is a mutable value type. This means that when you hand a tuple to a function or assign it to a local variable a logical copy is made. You can change the values at a given index by assigning using the subscript notation.
๐ŸŒ
Medium
medium.com โ€บ @mikeabelar โ€บ web-development-with-hhvm-and-hack-9-tuples-d2f14126a2eb
Web Development With HHVM and Hack 9: Tuples | by Mike Abelar | Medium
March 18, 2020 - Let us first type check our program with hh_client tuples.hack and then run our code with hhvm tuples.hack , which produces the following output:
Discussions

How to convert from a tuple to a vec or varray in Hacklang? - Stack Overflow
Tuple doesn't seem to implement Traversable. So, how would one convert a Tuple to a vec in Hack? More on stackoverflow.com
๐ŸŒ stackoverflow.com
c# - Tuple's GetHashCode hack - Stack Overflow
Knowing that to obtain hashcode for two objects it is common practice to do XOR of their respective hashcodes I wanted to check how Tuple deals with situation where Item1 == Item2. This is what I f... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Hacker Rank Tuple Problem
Hi Everyone, I need your Help. I am new to Python and come across this Hacker Rank Tuple Problem and want to write this as simplest as possible. Q. Given an integer, n, and n space-separated integers as input, create a tuple, t, of those n integers. Then compute and print the result of hash(t). ... More on forum.freecodecamp.org
๐ŸŒ forum.freecodecamp.org
1
0
January 27, 2023
Best practice? Function returning a struct, tuple, or void with argument references?
A struct. Though, through laziness, I often use a pair/tuple if the contained types are different and I only ever instantly unpack it with a structured binding. More on reddit.com
๐ŸŒ r/cpp_questions
22
4
June 28, 2023
๐ŸŒ
Hhvm
docs.hhvm.com โ€บ list
List | Hack & HHVM Documentation
You can use the special $_ variable to ignore certain elements of the tuple. You can use $_ multiple times in one assignment and have the types be different. You MUST use $_ if you want to ignore the elements at the end.
๐ŸŒ
Hacking with Swift
hackingwithswift.com โ€บ sixty โ€บ 2 โ€บ 3 โ€บ tuples
Tuples - a free Hacking with Swift tutorial
May 28, 2019 - You can access items in a tuple using numerical positions or by naming them, but Swift wonโ€™t let you read numbers or names that donโ€™t exist.
๐ŸŒ
Blogger
hhvmhack.blogspot.com โ€บ 2014 โ€บ 03 โ€บ tuples.html
HHVM and HACK Programming language: Tuples
March 26, 2014 - Hack has a basic implementation for tuples. A tuple is, for all intents and purposes, an immutable array. With a PHP array, elements can be added and removed at will. With a tuple, after initialization, elements cannot be added to or removed from the tuple. In other words, it remains a fixed size.
๐ŸŒ
Retool
retool.com โ€บ blog โ€บ 12-days-of-retool-two-tuple-hacks
Retool Blog | 12 Days of Retool: Two Tuple Hacks
July 9, 2025 - Today, we'll show how and when to use a tuple (or at least a tuple-like array) in JavaScript for two specific kinds of data, and share one sample Retool app that includes a notable example of "tuples" in a custom component.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 63417790 โ€บ how-to-convert-from-a-tuple-to-a-vec-or-varray-in-hacklang
How to convert from a tuple to a vec or varray in Hacklang? - Stack Overflow
Can you not traverse it using a foreach loop? It seems to work for me. ` $lst = tuple('a', 'b', 'c'); foreach($lst as $a) { echo($a); } ` So you can reconstruct the tuple to a vec.
๐ŸŒ
YouTube
youtube.com โ€บ nextrie
Python HackerRank Solutions: Tuples - YouTube
Python HackerRank solution for the "Tuples" problem.HackerRank Python solutions on GitHub: https://github.com/IsaacAsante/HackerRankLink to this Python exerc...
Published ย  October 17, 2022
Views ย  2K
๐ŸŒ
HackerRank
hackerrank.com โ€บ challenges โ€บ python-tuples โ€บ problem
Tuples | HackerRank
Task Given an integer, , and space-separated integers as input, create a tuple, , of those integers.
Find elsewhere
๐ŸŒ
Hackage
hackage.haskell.org โ€บ package โ€บ base โ€บ docs โ€บ Data-Tuple.html
Data.Tuple - Hackage - Haskell.org
While such simple extraction functions are the most common uses for unary tuples, they can also be useful for fine-grained control of strict-spined data structure traversals, and for unifying the implementations of lazy and strict mapping functions.
๐ŸŒ
GitHub
github.com โ€บ Morglod โ€บ ts-tuple-hacks
GitHub - Morglod/ts-tuple-hacks: TypeScript collection of tuple tasks
Make pipe function type Tuple represents results of each pipe's step
Author ย  Morglod
๐ŸŒ
Hackage
hackage.haskell.org โ€บ package โ€บ box-tuples
box-tuples: A hack to use GHC.Prim primitives in GHCi
February 6, 2021 - In particular, it is unable to fully apply any function returning an unboxed tuple, create a function that takes a non-nullary unboxed tuple as argument, or pass a non-nullary tuple to some other function. The usual solution is to enable object code generation with -fobject-code. This package serves as a workaround for the cases where -fobject-code is undesiable. ... Produced by hackage and Cabal 3.16.1.0.
๐ŸŒ
freeCodeCamp
forum.freecodecamp.org โ€บ python
Hacker Rank Tuple Problem - Python - The freeCodeCamp Forum
January 27, 2023 - Hi Everyone, I need your Help. I am new to Python and come across this Hacker Rank Tuple Problem and want to write this as simplest as possible. Q. Given an integer, n, and n space-separated integers as input, create a tuple, t, of those n integers. Then compute and print the result of hash(t). My Code :- (But its throwing error as per Hacker Rank) n = int(input()) t = tuple(map ( int , input().split())) print(hash(t))
๐ŸŒ
Learn X in Y Minutes
learnxinyminutes.com โ€บ hack
Learn Hack in Y Minutes
*/ /* ================================== * NAMESPACES * ================================== */ // Namespaces contain definitions of classes, interfaces, traits, functions, and constants. namespace LearnHackinYMinutes { /* ================================== * TYPES * ================================== */ function demo_hack_types(): void { // Hack has five primitive types: bool, int, float, string, and null. $is_helpful = true; // bool $int_value = 10; // int $precise_value = 2.0; // float $hello_world = "Hello World!"; // string $null_string = null; // null // Create a `shape` with the shape keyword, with a series of field names and values. $my_point = shape('x' => -3, 'y' => 6, 'visible' => true); // Create a `tuple` with the tuple keyword, with a series of two or more types as values.
๐ŸŒ
Hacker News
news.ycombinator.com โ€บ item
Lisp's mysterious tuple problem | Hacker News
July 20, 2017 - You discovered structs, but you should not have stopped there. Structs can be configured. You can declare boa constructors (yes, really, By Order of Arguments). You can configure the names of the accessors. You might even create a little reader macro for creating them.
๐ŸŒ
Finxter
blog.finxter.com โ€บ python-ternary-tuple
Python Ternary โ€” Tuple Syntax Hack โ€“ Be on the Right Side of Change
July 11, 2020 - Syntax: You can use the tuple syntax (x, y)[c] consisting of a tuple (x, y) and a condition c enclosed in a square bracket.