F# Tutorial: Using the List.takeWhile function

Publicado em: 23 Abril 2023
no canal de: NiklasOPF
106
7

#fsharp #programming #softwaredevelopment

The List.takeWhile function in F# takes a predicate function and a list as input, and returns a new list containing the elements of the original list that satisfy the predicate. The function stops adding elements to the new list as soon as an element that does not satisfy the predicate is encountered.

This function is similar to the List.filter function, but it only includes elements until the predicate fails, whereas List.filter includes all elements that satisfy the predicate.

📱 Social media
  / forsstrom-niklas  
https://niklasopf.github.io/


Nesta página do site você pode assistir ao vídeo on-line F# Tutorial: Using the List.takeWhile function duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário NiklasOPF 23 Abril 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 106 vezes e gostou 7 espectadores. Boa visualização!