seq Questions

3

Solved

What is the expected behavior when an application that uses Serilog and Seq can't find a server to send the logs to? Will every attempt to log throw an exception? I would like my app to use the Seq...
Questionnaire asked 8/1, 2021 at 8:3

2

Solved

(sorry for the long post, to skip directly to the question(s), see bottom) (UPDATE: if you are revisiting, please see sections marked "update" ;) I set myself to understand better what was going o...
Parasympathetic asked 13/5, 2015 at 2:1

4

Solved

I am learning bash scripting. While exploring the math functions i am came across a command which calculated the value of pi. seq -f '4/%g' 1 2 99999 | paste -sd-+ | bc -l Although i understand...
Strohbehn asked 7/5, 2014 at 17:45

3

Solved

I'm using Serilog and Seq with a .Net project. My main objective is to log some specific events. I would like to have my own log event level (like "Warning", "Verbose", "In...
Eponymous asked 24/4, 2018 at 13:36

2

Solved

I tried to use Map.map to convert a map into a List of Tuples. However this fails. I did the following experiments: val m = Map(("a" -> 1), ("b" -> 2)) //> m : scala.collection.immutable...
Roundel asked 27/2, 2015 at 16:6

5

Solved

I can make a sequence of numbers like this: s = seq(from=1, to=10, by=1) How do I make a sequence of characters from A-Z? This doesn't work: seq(from=1, to=10)
Polypetalous asked 6/12, 2010 at 19:13

3

Solved

Is there an easy / idiomatic way in Clojure to test whether a given sequence is included within another sequence? Something like: (subseq? [4 5 6] (range 10)) ;=> true (subseq? [4 6 5] (range 1...
Customhouse asked 3/2, 2014 at 20:38

6

Solved

I have this example data by<-200 to<-seq(from=by,to=35280,by=by) Problem is that to ends at 35200 and ignore the last 80 which I need to involve in as last value. Is there any straigthforw...
Silsbye asked 9/2, 2015 at 21:2

3

Solved

Is there a reason that match written against Seq would work differently on IndexedSeq types than the way it does on LinearSeq types? To me it seems like the code below should do the exact same thin...
Comprehensive asked 17/4, 2012 at 21:7

2

Solved

Suppose I have a seq and I want to return the largest if there are any elements or None otherwise. F# does not appear to have this built-in. Here is my attempt: let tryMax xs = if Seq.isEmpty ...
Solitude asked 29/5, 2020 at 9:37

3

Solved

In Perl 6, I can iterate a literal sequence: .say for 0 ... 3; I can bind to a scalar and iterate that: my $s := 0 ... 3; .say for $s; But I can't bind to a scalar, pass it as an argument, and th...
Orpah asked 21/11, 2016 at 5:19

3

Solved

I need a sequence of repeated numbers, i.e. 1 1 ... 1 2 2 ... 2 3 3 ... 3 etc. The way I implemented this was: nyear <- 20 names <- c(rep(1,nyear),rep(2,nyear),rep(3,nyear),rep(4,nyear), ...
Procne asked 21/6, 2011 at 21:15

2

Solved

If I have the following class public class Customer { public string Name; } and then have the following log command in Serilog Log.Logger = new LoggerConfiguration() .WriteTo.Console() .Writ...
Transit asked 11/9, 2017 at 9:15

6

Solved

In zsh, when I have to create a bunch of files with zsh, I usually do something like: for x in $(seq 1 1000); do .....; done This works fine, it gives me files with names foo-1.txt .. foo-1000.t...
Huarache asked 15/3, 2012 at 8:17

7

Solved

I need to implement a method that returns a Scala Seq, in Java. But I encounter this error: java.util.ArrayList cannot be cast to scala.collection.Seq Here is my code so far: @Override public ...
Varicose asked 14/3, 2016 at 13:2

5

Solved

I've seen in many examples that sometimes a Seq is being used, while other times is the List... Is there any difference, other than the former one being a Scala type and the List coming from Java?...
Weathers asked 2/6, 2012 at 23:13

3

Solved

In Clojure, what would be the nicest way to have a sliding window over a (finite, not too large) seq? Should I just use drop and take and keep track of the current index or is there a nicer way I'm...
Backrest asked 15/9, 2009 at 15:30

5

Solved

What is the difference between size and length of a Seq? When to use one and when the other? scala> var a :Seq[String] = Seq("one", "two") a: Seq[String] = List(one, two) scala> a.size res6...
Bop asked 9/4, 2014 at 15:7

2

Solved

I have a Seq and dataframe. The dataframe contains a column of array type. I am trying to remove the elements that are in the Seq from the column. For example: val stop_words = Seq("a", "and", "f...
Departure asked 17/5, 2019 at 6:38

4

Solved

I'm learning F# and I've started to play around with both sequences and match expressions. I'm writing a web scraper that's looking through HTML similar to the following and taking the last URL in...
Thermel asked 11/8, 2016 at 22:44

2

Solved

It has the deceivingly simple code: method match(Any:U: |) { self.Str; nqp::getlexcaller('$/') = Nil } However, this is the behavior it has: (^3).match(1) # OUTPUT: «「1」␤» So far, so good. ...
Paradisiacal asked 22/2, 2019 at 6:32

5

Solved

In order to set the custom break intervals for a log scale in a ggplot2 chart, I created the following vector from multiple sequences. breaks <- c(seq(2000, 10000, by = 1000), seq(20000, 10000...
Artamas asked 28/5, 2014 at 2:32

1

Solved

Assuming I have a value case class case class Id(i:Int) extends AnyVal and a sequence containing this value case class Seq(Id(1), Id(2), Id(3)) is there a way of converting those values into...
Philender asked 14/1, 2019 at 17:52

0

I have: Serilog 2.7.1 .NET Framework 4.5.x I have a stringified JSON with different structures. Example: { "dto": { "id": "8d8cc96fa1b44186b28f2a90364e47d2", "userName": "case6", "display": t...
Cucurbit asked 26/10, 2018 at 9:10

3

Solved

I've been doing some computationally intensive work in F#. Functions like Array.Parallel.map which use the .Net Task Parallel Library have sped up my code exponentially for a really quite minimal e...

© 2022 - 2024 — McMap. All rights reserved.