Skip to content

Instantly share code, notes, and snippets.

@jonifreeman
Last active December 23, 2015 00:19
Show Gist options
  • Save jonifreeman/6552821 to your computer and use it in GitHub Desktop.
Save jonifreeman/6552821 to your computer and use it in GitHub Desktop.
type FieldType[K, V] = (K, V)
// Singleton types as keys
r get "k01" // 1s was 1s
r get "k02" // 3s was 4s
r get "k03" // 5s was 7s
r get "k04" // 6s was 10s
r get "k05" // 7s was 12s
r get "k10" // 12s was 21s
r get "k20" // 16s was 30s
// Objects as keys
r get k01 // 1s was 1s
r get k02 // 2s was 2s
r get k03 // 2s was 4s
r get k04 // 3s was 5s
r get k05 // 3s was 6s
r get k10 // 5s was 9s
r get k20 // 7s was 12s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment