Questions tagged as 'map'

1
answer

Difference between HashMap and TreeMap

What are the main differences between HashMap and TreeMap ? In relation to the use, in which situations is the use of each one recommended?     
asked by 08.11.2018 / 12:12
1
answer

What is the JavaScript Map object for?

This also seems to be another JavaScript novelty: the object Map . Unlike the Set , which I already I have an idea how it works and I saw it in other languages, Map is something I did not see in any language I worked on. Wha...
asked by 12.07.2018 / 19:36
1
answer

Difference between std :: map, std :: unordered_map, std :: flat_map, and which one to choose?

What is the difference between library functions map , unordered_map , flat_map , and which one to use, for example in terms of performance?     
asked by 23.12.2017 / 02:23
1
answer

atOffset using map

private OffsetDateTime getDataDistribuicao() { return Optional.ofNullable(this.getPaginaInfoGerais()) .map(page -> page.<HtmlTableCell>getFirstByXPath(XPATH_CEL_DATA_DISTRIBUICAO)) .map(HtmlTableCell::getT...
asked by 08.11.2017 / 15:13
2
answers

Fill Map without duplicate records

I have List of an object A . In this object, I have 2 attributes: Long and a BigDecimal . How can I create a Map where the key will be Long and the value will be BigDecimal , using lambda ?...
asked by 31.07.2018 / 20:23
1
answer

Elixir multiplication in a Map does not work. Because?

I'm new to Elixir and I do not understand the return of the function. list = %{"100" => 1, "50" => 2, "20" => 4, "10" => 8, "5" => 16, "1" => 32} for {key, value} <- list, do: String.to_integer(key) * value Or Enum.m...
asked by 01.04.2018 / 17:25
2
answers

Save file data to a c ++ map

I can not read a txt file correctly and transfer it to a map in c ++. The code I've developed works only if it has no "" spaces in the txt, if it has looped and does not work. Here is the code: void dados::pesquisarProdutos(){ arq.open("pr...
asked by 28.08.2017 / 02:59
2
answers

How do docker respond to a domain that does not exist in / etc / hosts?

In my hosts file I have only the following following domains: 127.0.0.1 localhost 127.0.0.1 abc.com When I run the image I use the following command: docker run -p 80:80 -v /Users/userName/Documents/siteABC:/var/www/html my_image...
asked by 17.11.2017 / 18:09
1
answer

Mapping between FHIR and OpenEHR

I have a question about mapping between persistence models and health data interoperability. Is there any mapping between FHIR and OpenEHR? If so, how should it be done? Is there any automatic way to do it?     
asked by 26.10.2018 / 20:21
2
answers

What is the difference between map () and lenght ()?

I was studying and this code appeared: var materials = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium' ]; console.log(materials.map(material => material.length)); From what I understand, it scans the array and ret...
asked by 20.01.2018 / 17:21