GOLANGTESTS Telegram 330
👣 Что выведет код?

package main

var m = make(map[any]any)

func foo[T any](x T) {
type K struct{}
m[K{}] = x
}

func main() {
foo(123)
foo(true)
println(len(m))
}

Ответ

@golangtests
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🔥2



tgoop.com/golangtests/330
Create:
Last Update:

👣 Что выведет код?

package main

var m = make(map[any]any)

func foo[T any](x T) {
type K struct{}
m[K{}] = x
}

func main() {
foo(123)
foo(true)
println(len(m))
}

Ответ

@golangtests

BY Go tests


Share with your friend now:
tgoop.com/golangtests/330

View MORE
Open in Telegram


Telegram News

Date: |

End-to-end encryption is an important feature in messaging, as it's the first step in protecting users from surveillance. Those being doxxed include outgoing Chief Executive Carrie Lam Cheng Yuet-ngor, Chung and police assistant commissioner Joe Chan Tung, who heads police's cyber security and technology crime bureau. The main design elements of your Telegram channel include a name, bio (brief description), and avatar. Your bio should be: It’s easy to create a Telegram channel via desktop app or mobile app (for Android and iOS): Just at this time, Bitcoin and the broader crypto market have dropped to new 2022 lows. The Bitcoin price has tanked 10 percent dropping to $20,000. On the other hand, the altcoin space is witnessing even more brutal correction. Bitcoin has dropped nearly 60 percent year-to-date and more than 70 percent since its all-time high in November 2021.
from us


Telegram Go tests
FROM American