Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for mapclone (0.19 sec)

  1. src/runtime/map.go

    // complications with instrumentation (coverage, etc).
    func mapinitnoop()
    
    // mapclone for implementing maps.Clone
    //
    //go:linkname mapclone maps.clone
    func mapclone(m any) any {
    	e := efaceOf(&m)
    	e.data = unsafe.Pointer(mapclone2((*maptype)(unsafe.Pointer(e._type)), (*hmap)(e.data)))
    	return m
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  2. test/typeparam/cons.go

    }
    
    func (m mapNil[a, b]) Apply(_ Nil[a]) any {
    	return Nil[b]{}
    }
    
    type mapCons[a, b any] struct {
    	f Function[a, b]
    }
    
    func (m mapCons[a, b]) Apply(xs Cons[a]) any {
    	return Cons[b]{m.f.Apply(xs.Head), Map[a, b](m.f, xs.Tail)}
    }
    
    func Map[a, b any](f Function[a, b], xs List[a]) List[b] {
    	return xs.Match(mapNil[a, b]{}, mapCons[a, b]{f}).(List[b])
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 21 23:41:49 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. src/time/genzabbrs.go

    const wzURL = "https://raw.githubusercontent.com/unicode-org/cldr/main/common/supplemental/windowsZones.xml"
    
    type MapZone struct {
    	Other     string `xml:"other,attr"`
    	Territory string `xml:"territory,attr"`
    	Type      string `xml:"type,attr"`
    }
    
    type SupplementalData struct {
    	Zones []MapZone `xml:"windowsZones>mapTimezones>mapZone"`
    }
    
    func readWindowsZones() ([]*zone, error) {
    	r, err := http.Get(wzURL)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/internal/profile/merge.go

    		Mapping:  mi.m,
    		Address:  uint64(int64(src.Address) + mi.offset),
    		Line:     make([]Line, len(src.Line)),
    		IsFolded: src.IsFolded,
    	}
    	for i, ln := range src.Line {
    		l.Line[i] = pm.mapLine(ln)
    	}
    	// Check memoization table. Must be done on the remapped location to
    	// account for the remapped mapping ID.
    	k := l.key()
    	if ll, ok := pm.locations[k]; ok {
    		pm.locationsByID[src.ID] = ll
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 17 19:35:56 UTC 2020
    - 11.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    		Mapping:  mi.m,
    		Address:  uint64(int64(src.Address) + mi.offset),
    		Line:     make([]Line, len(src.Line)),
    		IsFolded: src.IsFolded,
    	}
    	for i, ln := range src.Line {
    		l.Line[i] = pm.mapLine(ln)
    	}
    	// Check memoization table. Must be done on the remapped location to
    	// account for the remapped mapping ID.
    	k := l.key()
    	if ll, ok := pm.locations[k]; ok {
    		pm.locationsByID.set(src.ID, ll)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top