Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Float32List, Float64List and Float32x4List constructors with List<num> or List<double> input. #9736

Closed
DartBot opened this issue Apr 7, 2013 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Apr 7, 2013

This issue was originally filed by @ahmetaa


Float32List, Float64List and Float32x4List constructors with List<num> or List<double> input. It seems fairly common to initialize those objects with List<> input. Currently I need to use methods like

Float32x4List toFloat32x4List(List<double> list)
or
Float32List toFloat32List(List<double> input)

Reverse methods are also needed. Such as

List<double> toDoubleList(Float32x4List lst)

If there is a more generic solution to this, (some kind of List->ByteBuffer transformation) of course that would be more preferable.

@anders-sandholm
Copy link
Contributor

Removed Type-Defect label.
Added Type-Enhancement, Area-Library, Triaged labels.

@DartBot DartBot added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Apr 9, 2013
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@lrhn
Copy link
Member

lrhn commented Aug 11, 2017

These constructors exist, it's, e.g. new Float64List.from(listOfDoubles).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants