Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Created August 23, 2021 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/58f816500a5cd9fa4affff440e301af6 to your computer and use it in GitHub Desktop.
Save dminuoso/58f816500a5cd9fa4affff440e301af6 to your computer and use it in GitHub Desktop.
*Odin.Core Optics> view each [1,2,3]
<interactive>:2:1: error:
• A_Traversal cannot be used as A_Getter
Perhaps you meant one of these:
‘traverseOf’ (from Optics.Traversal)
‘traverseOf_’ (from Optics.Fold)
‘foldMapOf’ (from Optics.Fold)
‘toListOf’ (from Optics.Fold)
‘over’ (from Optics.Setter)
‘set’ (from Optics.Setter)
‘(^..)’ ‘(%~)’ ‘(.~)’ (from Optics.Operators)
• In the expression: view each [1, 2, 3]
In an equation for ‘it’: it = view each [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment