For convolution functions, various names are used for each programming language and argument type, such as fold
, reduce
, inject
, etc., but what are the names of the two functions?fold
has unfold
corresponding (F#, Haskell), but I don't know the name of the function corresponding to reduce
, inject
.
I asked because I thought it was necessary to find these functions and define them myself.
Supplement:unfold Specifications
Seq.unfold
in F# is a function that takes the function f
and the initial state s
as arguments and returns the sequence; f
is a function that returns the sequence as option
.
The same goes for Haskell's unfoldr
.
If it is not included in the official library, I think there is probably no standard name for it.Especially as far as I know,
reduce->python
injection->ruby
However, compared to F# and Haskell, the functional color is lighter, so I think that's what happened.
Recently, Java Stream seems to have implemented unfold equivalent features, but since it is Stream.iterate, it may be relatively different depending on the library implementation.
708 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
549 PHP ssh2_scp_send fails to send files as intended
536 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.