arrays – ‘funcallable’ objects


arrays – ‘funcallable’ objects

does / could haskell support accessing (immutable) arrays as 'fun-callable objects' as in some lisps, ( I think I recall clojure worked like this? 'lisp-1's ?)

I realise you could very easily pass an accessor 'Index->t' around instead of an array,

the notion would be making it explicit r.e. 'hoping the compiler inlines it for you' .. (there's more unknowns in haskell r.e. laziness .. 'where's the level at which you think inlining would happen?)) Of course code taking a general accessor object would also be more general

Submitted July 16, 2017 at 07:14PM by dobkeratops
via reddit http://ift.tt/2uqRbXq

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s