1-- @inline Heterogeneous.Mapping.hmapRecord arity=2
2-- @inline Heterogeneous.Mapping.hmapWithIndexRecord arity=2
3-- @inline Heterogeneous.Mapping.mapRecordWithIndexCons arity=5
4-- @inline Heterogeneous.Mapping.mapRecordWithIndexNil.mapRecordWithIndexBuilder arity=2
5module Snapshot.Heterogeneous01
12import Data.Symbol (class IsSymbol)
13import Data.Tuple (Tuple(..))
14import Heterogeneous.Mapping (hmap, hmapWithIndex, class MappingWithIndex)
16import Record as Record
17import Record.Builder as Record.Builder
18import Type.Proxy (Proxy(..))
20newtype ZipProps fns = ZipProps { | fns }
24 , Row.Cons sym (a -> b) x fns
26 MappingWithIndex (ZipProps fns) (Proxy sym) a b where
27 mappingWithIndex (ZipProps fns) prop = Record.get prop fns
29zipRecord = hmapWithIndex <<< ZipProps
42test2 :: { a :: Int, b :: Number, c :: Boolean } -> _
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list