4 ms·
For anyone interested in seeing what's possible with Generics in Go - Here is an online playground that uses the browser-based playground and a WASM compiler to
by apatheticonion 6y ago
For anyone interested in seeing what's possible with Generics in Go - Here is an online playground that uses the browser-based playground and a WASM compiler to run the generics proposal (in browser).
The example includes a simple generic `Filter` function
https://ccbrown.github.io/wasm-go-playground/experimental/generics/#A4Qwxg1iDmCmAEBbEBLAdgKAwMwK5rHgDEUAbAF1gCcAKcgT2AQBUBKeG0gbQF1mAaeMHh4CNAG7w28AEYB7OaXa9m8AN4YAkHNzlgu+AC4AvPBVqAvlq3Y5VeAH1Bkk/Cog0ceKXVbNVWABnXAojU2AJVj8UbDcgkPJ4Y1NyKlwEDU1NeBz4HT0DUxBgJjQAExp8/XJnKKyrTQatAPJcKjQ83WqMKxx8QmR0GnZMwLCzHkDU9Gg1ACIQOcE5mSX4ObA5ps1Y1xIKahpAwVEwCXgpqhn2eUVfLJj4SWT11fuslraO7BBSQNg/BZ4FpcvB/LBWu14Kl0loLHUbHZHM5xu5PAhYplNMArmhyKQ0JE4T0MEA=== https://ccbrown.github.io/wasm-go-playground/experimental/ge...