Outils pour utilisateurs

Outils du site


tech:notes_go_lang_programmation_fonctionnelle

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:notes_go_lang_programmation_fonctionnelle [2026/04/13 22:27] – créée Jean-Baptistetech:notes_go_lang_programmation_fonctionnelle [2026/04/18 09:11] (Version actuelle) Jean-Baptiste
Ligne 3: Ligne 3:
  
 # Notes go lang programmation fonctionnelle # Notes go lang programmation fonctionnelle
 +
 +Voir :
 +* https://bitfieldconsulting.com/posts/functional
  
 ## map ## map
 +
 +Voir :
 +* https://stackoverflow.com/questions/12655464/can-functions-be-passed-as-parameters
  
 ~~~go ~~~go
Ligne 11: Ligne 17:
 import "fmt" import "fmt"
  
-type f_ii func(int) int+//type f_ii func(int) int
  
-func MapInt(f f_ii, l []int) [](int) {+//func MapInt(f f_ii, l []int) [](int) { 
 +func MapInt(f func(int) int, l []int) [](int) {
         ret := []int{}         ret := []int{}
         for _, v := range l {         for _, v := range l {
tech/notes_go_lang_programmation_fonctionnelle.1776112061.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki