gleam-lang/gleam

Allow function literals in constants

Open

#3 942 ouverte le 2 déc. 2024

Voir sur GitHub
 (2 commentaires) (2 réactions) (0 assignés)Rust (960 forks)batch import
help wanted

Métriques du dépôt

Stars
 (21 417 stars)
Métriques de merge PR
 (Merge moyen 10j 19h) (69 PRs mergées en 30 j)

Description

The ability to do something like this would be nice:

type FunctionWrapper {
  FunctionWrapper(fn(String) -> Int)
}
const my_function = FunctionWrapper(fn(something) { 0 })

Guide contributeur