Andrew Chambersadd mktempat to stdb44b19310 years agoHistory
22 lines · 222 B · Text
RawDownload
use std type t = struct	v1 : int	v2 : int	v3 : int;; const main = {	var v : t 	v.v1 = 2	v.v2 = 40	v.v3 = 10	match v	| [.v2 = x, .v1 = y, .v3 = 10]:			 std.exit(x + y)	| _:		std.die("Wat")	;;	std.exit(0)}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t