You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function captures a list and then applies some head and tail alternative functions to it, when it could be simplified to pattern match on the list.
The text was updated successfully, but these errors were encountered:
ivanperez-keera
changed the title
yampa: Function FRP.Yampa.Switches is overly complicatedyampa: Function FRP.Yampa.Switches.safeZip is overly complicated
Jun 9, 2024
The function FRP.Yampa.Switches.safeZip, or more specifically, safeZip'
inside it, captures a list and then applies some head and tail
alternative functions to it.
This commit reduces the function by pattern matching on the list,
already obtaining the head and the tail. We move the error reporting to
a third, default case.
This function captures a list and then applies some head and tail alternative functions to it, when it could be simplified to pattern match on the list.
The text was updated successfully, but these errors were encountered: