Скачать
Generating infinite sequences in Elixir with Stream.unfold/2
Автор: German Velasco
Загружено: 2023-07-20
Просмотров: 500
Описание:
Ever want to create an infinite sequence?
Me neither. But it’s really cool to see how we can do that with Stream.unfold/2.
You can think of unfold as something like the opposite of reduce. When we reduce, we grab a list (or sequence) and iterate over the values to generate a final value. With unfold, we start with a single value (the seed) and then generate a sequence by applying a transformation on each subsequent value.
Check out more at https://www.elixirstreams.com/tips/cr...
Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: