Internal Iteration Externalized

نویسنده

  • Thomas Kühne
چکیده

Although it is acknowledged that internal iterators are easier and safer to use than conventional external iterators, it is commonly assumed that they are not applicable in languages without builtin support for closures and that they are less exible than external iterators. We present an iteration framework that uses objects to emulate closures, separates structure exploration and data consumption, and generalizes on folding, thereby invalidating both the above statements. Our proposed "transfold" scheme allows processing one or more data structures simultaneously without exposing structure representations and without writing explicit loops. We show that the use of two functional concepts (function parameter-ization and lazy evaluation) within an object-oriented language allows combining the safety and economic usage of internal iteration with the exibility and client control of external iteration. Sample code is provided using the statically typed Eiffel language.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Externalized aggressive behaviors in patients with borderline personality symptomatology.

OBJECTIVE Borderline personality disorder (BPD) is commonly characterized by self-directed aggressive behavior, although the literature indicates that externalized aggressive behavior may be present. The simultaneous examination of multiple types of externalized aggressive behavior in individuals with BPD and the exploration of such relationships in a primary care population have not, to our kn...

متن کامل

Phonemic clicks and the mapping asymmetry: How language emerged and speech developed.

Language existed before human populations became separated (all descendant populations have language) but language did not emerge until long after these population divergences occurred (behavioral modernity only showed then). Distinguishing capacity for language from externalized language resolves the apparent paradox, eliminates the need of proto-language, and rules out monogenesis. Speech eme...

متن کامل

Labelled leucocyte scintigraphy in an infected externalized Riata lead.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Labelled leucocyte scintigraphy in an infected exte...

متن کامل

New Internal Fixation Technique for Transconjunctival Fat Repositioning

To treat tear trough deformities in young patients, transconjunctival orbital fat repositioning has been widely used. Although internal fixation of transposed fat enables more secure and stable fixation than the externalized percutaneous suture method, the latter is used more commonly because of the narrow operation field and consequent technical difficulty of the internal fixation method. We d...

متن کامل

Explanation of Self-determination Experiences in Students with Externalized Behavior Disorders: A Phenomenological Approach

Introduction: Students with externalized behavior disorders have lower levels of capacity for self-determination skills. The aim of this study was to explain self-determination experiences in students with externalized behavior disorders. Method: This qualitative study was conducted using phenomenological approach. Data were collected using in-depth interview with 10 students with externalized...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999